List of usage examples for org.apache.wicket.resource TextTemplateResourceReference TextTemplateResourceReference
public TextTemplateResourceReference(final Class<?> scope, final String fileName, IModel<Map<String, Object>> variablesModel)
From source file:com.googlecode.wicket.jquery.core.resource.JavaScriptPackageHeaderItem.java
License:Apache License
/** * Constructor// ww w . j a v a 2s . c o m * * @param scope the scope * @param function the function, i.e.: the name of the '.js' file without the extension * @param variables the variable {@code Map} to supply to the file */ public JavaScriptPackageHeaderItem(Class<?> scope, String function, Map<String, Object> variables) { super(new TextTemplateResourceReference(scope, function + ".js", Model.ofMap(variables)), null, function, false, null, null); }
From source file:org.apache.openmeetings.web.user.calendar.CalendarFunctionsBehavior.java
License:Apache License
private ResourceReference newResourceReference() { return new TextTemplateResourceReference(CalendarFunctionsBehavior.class, "calendar-functions.js", this.newResourceModel()); }