Re: Any news on "1.5 - mapping different error pages for specific errors"

2012-04-25 Thread jensiator
I will try to contribute -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Any-news-on-1-5-mapping-different-error-pages-for-specific-errors-tp3602151p4588983.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Any news on "1.5 - mapping different error pages for specific errors"

2012-04-25 Thread Martin Grigorov
Hi Jens, On Wed, Apr 25, 2012 at 11:04 AM, jensiator wrote: > I Think is something like: > public IRequestHandler onException(RequestCycle pCycle, Exception > pException) { > if(pException instanceof SomeException) { >  return new RenderPageRequestHandler(new PageProvider(new > SomeSpecialOwnErro

Re: Any news on "1.5 - mapping different error pages for specific errors"

2012-04-25 Thread jensiator
I Think is something like: public IRequestHandler onException(RequestCycle pCycle, Exception pException) { if(pException instanceof SomeException) { return new RenderPageRequestHandler(new PageProvider(new SomeSpecialOwnErrorPage())); } } >From my peek in the super class. Have not tested it. Ple

Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread nino martinez wael
thanks for updating the wiki..:) 2011/6/16 Martin Grigorov : > See > org.apache.wicket.request.cycle.AbstractRequestCycleListener.onException(RequestCycle, > Exception), org.apache.wicket.Application.getRequestCycleListeners() > and org.apache.wicket.request.handler.RenderPageRequestHandler > and

Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread Peter Ertl
Though I would prefer the method Martin suggested there's also the possibility of customizing web.xml: http://docs.codehaus.org/display/JETTY/How+to+Create+Custom+Error+Pages Am 16.06.2011 um 13:54 schrieb Martin Grigorov: > See > org.apache.wicket.request.cycle.AbstractRequestCycleListener.on

Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread Martin Grigorov
See org.apache.wicket.request.cycle.AbstractRequestCycleListener.onException(RequestCycle, Exception), org.apache.wicket.Application.getRequestCycleListeners() and org.apache.wicket.request.handler.RenderPageRequestHandler and https://cwiki.apache.org/confluence/display/WICKET/RequestCycle+in+Wic

Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread nino martinez wael
Sure.. Basically I want to map different runtime exceptions to different pages, preserving the exception for usage in the consumer page of course. Like explained here: http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-td3511899.html 2011/6/16 Jorge

Re: Any news on "1.5 - mapping different error pages for specific errors"

2011-06-16 Thread Jorge Rodrigez
If you spare a bit of your precious time to explain the problem in more details then we may have an idea. On Thu, Jun 16, 2011 at 2:33 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Does anybody have an idea howto implement this? > > regards Nino > > -