|
WiQuerySettings
What is that ?You have the interface IWiQuerySettings and the class WiQuerySettings. The interface must be placed on your WebApplication definition. You will have a method where you will create a WiQuerySettings bean which will contains some configrations for wiQuery. How to usepublic class WicketApplication extends WebApplication implements IThemableApplication, IWiQuerySettings {
// Constants
private static final Logger LOGGER = LoggerFactory.getLogger(WicketApplication.class);
/**
* Constructor
*/
public WicketApplication() {
super();
}
/**
* @see org.apache.wicket.Application#getHomePage()
*/
@Override
public Class<HomePage> getHomePage() {
return HomePage.class;
}
/**
* {@inheritDoc}
* @see org.odlabs.wiquery.core.commons.IWiQuerySettings#getWiQuerySettings()
*/
public WiQuerySettings getWiQuerySettings() {
WiQuerySettings settings = new WiQuerySettings();
settings.setEnableResourcesMerging(true);
return settings;
}
}Possible configurations
| |
► Sign in to add a comment