org.apache.wicket.resource.JQueryPluginResourceReference Java Examples

The following examples show how to use org.apache.wicket.resource.JQueryPluginResourceReference. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfirmationBehavior.java    From openmeetings with Apache License 2.0 5 votes vote down vote up
@Override
public void renderHead(Component component, IHeaderResponse response) {
	super.renderHead(component, response);

	References.renderWithFilter(response, JavaScriptHeaderItem
			.forReference(new JQueryPluginResourceReference(ConfirmationBehavior.class, "bootstrap-confirmation.js")));

	if (selector == null) {
		config.withRootSelector(component.getMarkupId());
		response.render($(component).chain("confirmation", config).asDomReadyScript());
	} else {
		config.withRootSelector(selector);
		response.render($(selector).chain("confirmation", config).asDomReadyScript());
	}
}
 
Example #2
Source File: AdminLTE.java    From syncope with Apache License 2.0 5 votes vote down vote up
@Override
public List<HeaderItem> getDependencies() {
    List<HeaderItem> references = new ArrayList<>();
    references.add(JavaScriptHeaderItem.forReference(
            new JQueryPluginResourceReference(AdminLTE.class, "js/AdminLTE-app.min.js"), "adminltejs"));
    references.add(CssHeaderItem.forReference(AdminLTECssResourceReference.INSTANCE));
    references.addAll(super.getDependencies());
    return references;
}