Example usage for org.apache.wicket.model.util MapModel MapModel

List of usage examples for org.apache.wicket.model.util MapModel MapModel

Introduction

In this page you can find the example usage for org.apache.wicket.model.util MapModel MapModel.

Prototype

public MapModel() 

Source Link

Document

Creates empty model

Usage

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
}