List of usage examples for org.apache.wicket.util.value IValueMap getBoolean
boolean getBoolean(final String key) throws StringValueConversionException;
boolean
value by key. From source file:net.jawr.web.wicket.JawrJavascriptReference.java
License:Apache License
@Override protected BundleRenderer createRenderer(ResourceBundlesHandler rsHandler, Boolean useRandomParam, ComponentTag tag) {//from w w w .j a v a2 s . c o m final IValueMap attributes = tag.getAttributes(); boolean async = attributes.getBoolean(JawrConstant.ASYNC_ATTR); boolean defer = attributes.getBoolean(JawrConstant.DEFER_ATTR); String type = attributes.getString(JawrConstant.TYPE_ATTR); return RendererFactory.getJsBundleRenderer(rsHandler, type, useRandomParam, async, defer); }
From source file:net.jawr.web.wicket.JawrStylesheetReference.java
License:Apache License
@Override protected BundleRenderer createRenderer(ResourceBundlesHandler rsHandler, Boolean useRandomParam, ComponentTag tag) {/*w ww . j a v a2 s . c o m*/ final IValueMap attributes = tag.getAttributes(); String media = attributes.getString(JawrConstant.MEDIA_ATTR); String title = attributes.getString(JawrConstant.TITLE_ATTR); boolean alternate = attributes.getBoolean(JawrConstant.ALTERNATE_ATTR); boolean displayAlternateStyles = attributes.getBoolean(JawrConstant.DISPLAY_ALTERNATE_ATTR); return RendererFactory.getCssBundleRenderer(rsHandler, useRandomParam, media, alternate, displayAlternateStyles, title); }