List of usage examples for org.apache.wicket.model.util MapModel MapModel
public MapModel()
From source file:com.norconex.commons.wicket.markup.html.panel.FilePanel.java
License:Apache License
public FilePanel(String id, Class<?> scope, String fileName) { super(id, new MapModel<String, Object>()); this.fileStream = new PackageResourceStream(scope, fileName); }
From source file:com.norconex.commons.wicket.markup.html.panel.VelocityFilePanel.java
License:Apache License
public VelocityFilePanel(String id, Class<?> scope, String fileName, Map<String, Serializable> variables) { super(id, new MapModel<String, Object>()); this.templateStream = new PackageResourceStream(scope, fileName); if (variables != null) { this.variables.putAll(variables); }//from w w w. ja v a 2 s . c om }