Search in sources :

Example 1 with StatelessChecker

use of org.apache.wicket.devutils.stateless.StatelessChecker in project qi4j-sdk by Qi4j.

the class DCISampleApplication_a method wicketInit.

public void wicketInit() {
    // Tabs and SEO urls
    mountPages();
    // Show/hide Ajax debugging
    getDebugSettings().setDevelopmentUtilitiesEnabled(true);
    // Check that components are stateless when required
    getComponentPostOnBeforeRenderListeners().add(new StatelessChecker());
    // Show/hide wicket tags in html code
    getMarkupSettings().setStripWicketTags(true);
    // Default date format (we don't care for now about the hour of the day)
    ((ConverterLocator) getConverterLocator()).set(Date.class, new PatternDateConverter("yyyy-MM-dd", true));
}
Also used : ConverterLocator(org.apache.wicket.ConverterLocator) PatternDateConverter(org.apache.wicket.datetime.PatternDateConverter) StatelessChecker(org.apache.wicket.devutils.stateless.StatelessChecker)

Example 2 with StatelessChecker

use of org.apache.wicket.devutils.stateless.StatelessChecker in project qi4j-sdk by Qi4j.

the class DCISampleApplication_b method wicketInit.

public void wicketInit() {
    // Tabs and SEO urls
    mountPages();
    // Show/hide Ajax debugging
    getDebugSettings().setDevelopmentUtilitiesEnabled(true);
    // Check that components are stateless when required
    getComponentPostOnBeforeRenderListeners().add(new StatelessChecker());
    // Show/hide wicket tags in html code
    getMarkupSettings().setStripWicketTags(true);
    // Default date format (we don't care for now about the hour of the day)
    ((ConverterLocator) getConverterLocator()).set(Date.class, new PatternDateConverter("yyyy-MM-dd", true));
}
Also used : ConverterLocator(org.apache.wicket.ConverterLocator) PatternDateConverter(org.apache.wicket.datetime.PatternDateConverter) StatelessChecker(org.apache.wicket.devutils.stateless.StatelessChecker)

Aggregations

ConverterLocator (org.apache.wicket.ConverterLocator)2 PatternDateConverter (org.apache.wicket.datetime.PatternDateConverter)2 StatelessChecker (org.apache.wicket.devutils.stateless.StatelessChecker)2