THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Yes, it is. However, we must rely on the Maven project to update their repository with the latest releases, resulting in some lag. If you need them hot and fresh, you can use the wicket Maven 2 repository by adding the the following to your project's pom.xml:
Code Block | ||||
---|---|---|---|---|
| ||||
<repositories>
<repository>
<id>wicket</id>
<name>Wicket repository</name>
<url>http | ||||
Panel | ||||
<repositories> <repository> <id>wicket</id> <name>Wicket repository</name> <url>http ://wicket.sourceforge.net/ maven2<maven2</url> </repository> </repositories> |
How do I add custom error pages (like Page Expired)?
...
Add the following to your web.xml inside of <SERVLET>:
Code Block | ||||
---|---|---|---|---|
| ||||
<init-param> {panel} <param-name>configuration</param-name> <param-value>DEPLOYMENT</param-value> {panel} </init-param> |
How do I know in what mode (DEVELOPMENT/DEPLOYMENT) my application runs?
Code Block |
---|
if (DEVELOPMENT.equalsIgnoreCase(configurationType)) { {panel} log.info("You are in DEVELOPMENT mode"); getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND); getDebugSettings().setComponentUseCheck(true); getDebugSettings().setSerializeSessionAttributes(true); getMarkupSettings().setStripWicketTags(false); getExceptionSettings().setUnexpectedExceptionDisplay( UnexpectedExceptionDisplay.SHOW_EXCEPTION_PAGE); getAjaxSettings().setAjaxDebugModeEnabled(true); {panel} } else if (DEPLOYMENT.equalsIgnoreCase(configurationType)) { {panel} getResourceSettings().setResourcePollFrequency(null); getDebugSettings().setComponentUseCheck(false); getDebugSettings().setSerializeSessionAttributes(false); getMarkupSettings().setStripWicketTags(true); getExceptionSettings().setUnexpectedExceptionDisplay( UnexpectedExceptionDisplay.SHOW_INTERNAL_ERROR_PAGE); getAjaxSettings().setAjaxDebugModeEnabled(false); {panel} } |
There is no flag telling you in which mode you are. If you want a flag
subclass Application.configure() store the "configurationType"
parameter in a variable.
...