org.apache.wicket.devutils.stateless.StatelessChecker Java Examples

The following examples show how to use org.apache.wicket.devutils.stateless.StatelessChecker. 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: StatelessCheckerConfig.java    From wicket-spring-boot with Apache License 2.0 5 votes vote down vote up
@Override
public void init(WebApplication webApplication) {
	webApplication.getComponentPostOnBeforeRenderListeners().add(new StatelessChecker());
	
	wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass())
			.withDetail("properties", props)
			.build());
	
}
 
Example #2
Source File: MavenArtifactNotifierApplication.java    From artifact-listener with Apache License 2.0 5 votes vote down vote up
@Override
public void init() {
	super.init();
	
	if (RuntimeConfigurationType.DEVELOPMENT.equals(getConfigurationType())) {
		getComponentPostOnBeforeRenderListeners().add(new StatelessChecker());
	}
	
	if (RuntimeConfigurationType.DEPLOYMENT.equals(getConfigurationType())) {
		addResourceReplacement(JQueryResourceReference.get(),
				new UrlResourceReference(Url.parse("//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js")));
	}
}
 
Example #3
Source File: WicketApplicationBase.java    From webanno with Apache License 2.0 4 votes vote down vote up
protected void initStatelessChecker()
{
    if (RuntimeConfigurationType.DEVELOPMENT.equals(getConfigurationType())) {
        getComponentPostOnBeforeRenderListeners().add(new StatelessChecker());
    }
}