Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added code section to "How do I add custom error pages (like Page Expired)?"

...

In your application class that extends WebApplication, set the following in the init() method:

Code Block
java
java
getApplicationSettings().setPageExpiredErrorPage(myExpiredPage.class)

. There are also some other neat settings you should check out in getApplicationSettings(), getDebugSettings(), getExceptionSettings(), getMarkupSettings(), getPageSettings(), getRequestCycleSettings(), getSecuritySettings and getSessionSettings(). See the javadoc for more information.

...