Re: How to mount 404 page with Wicket and Servlet 3.0?

2018-02-13 Thread Kamil Paśko
Thank you Martin! For anyone that could have this problem: solution with Wicket-SpringBoot and annotations (almost identical as Martin suggested) is as follows: public class MyErrorPageRegistrar implements ErrorPageRegistrar {     @Override     public void registerErrorPages(final

Re: How to mount 404 page with Wicket and Servlet 3.0?

2018-02-13 Thread Martin Grigorov
Hi, In a plain Spring Boot application (without Wicket-SpringBoot) you can do it with ErrorPageRegistrar: import org.springframework.boot.web.servlet.ErrorPage; import org.springframework.boot.web.servlet.ErrorPageRegistrar; import org.springframework.boot.web.servlet.ErrorPageRegistry; import

How to mount 404 page with Wicket and Servlet 3.0?

2018-02-12 Thread Kamil Paśko
Hi, *Background:* I'm trying to mount 404 page to my Wicket project. I found confluence page wchich explains how to do it using web.xml (https://cwiki.apache.org/confluence/display/WICKET/Error+Pages+and+Feedback+Messages#ErrorPagesandFeedbackMessages-HTTPErrorPages) but my application uses