Class AbstractErrorPage

All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IManageablePage, IRequestableComponent, IRequestablePage, IHierarchical<Component>, IClusterable
Direct Known Subclasses:
AccessDeniedPage, ExceptionErrorPage, InternalErrorPage, PageExpiredErrorPage

public abstract class AbstractErrorPage extends WebPage
A parent page for all pages that are used to show an error to the user. Setups the common settings for an error page.
See Also:
  • Constructor Details

  • Method Details

    • isErrorPage

      public boolean isErrorPage()
      Description copied from class: Page
      Override this method and return true if your page is used to display Wicket errors. This can help the framework prevent infinite failure loops.
      Overrides:
      isErrorPage in class Page
      Returns:
      True if this page is intended to display an error to the end user.
    • isVersioned

      public boolean isVersioned()
      Overrides:
      isVersioned in class Component
      Returns:
      true if this component should notify its holding page about changes in its state. If a Page is not versioned then it wont track changes in its components and will use the same Page.getPageId() during its lifetime
    • renderHead

      public void renderHead(IHeaderResponse response)
      Description copied from class: Component
      Render to the web response whatever the component wants to contribute to the head section.
      Specified by:
      renderHead in interface IHeaderContributor
      Overrides:
      renderHead in class Component
      Parameters:
      response - Response object