Am I missing something simple?  I tried about 100 misc trial and error things
to get this to use my wicket page to handle 404's (and other errors).

        <filter-mapping>
                <filter-name>wicket</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>
        <error-page>
                <exception-type>Exception</exception-type>
                <location>/ErrorPage</location>
        </error-page>
        <error-page>
                <error-code>404</error-code>
                <location>/ErrorPage</location>
        </error-page>

public class ErrorPage extends WebPage
{
  private static final long serialVersionUID = 1L;

  public ErrorPage(PageParameters parameters)
  {
  } 
  @Override
  public boolean isErrorPage() {
      return true;
  }
}

public class MainApp extends WebApplication {
  
          @Override
          public void init()
          {
            super.init();
            mountPage("ErrorPage", ErrorPage.class);
...
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/1-5-4-error-handling-with-web-xml-error-page-issue-tp4395935p4395935.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to