Re: Any news on "1.5 - mapping different error pages for specific errors"
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. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any news on "1.5 - mapping different error pages for specific errors"
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 > SomeSpecialOwnErrorPage())); > } > } > > From my peek in the super class. Have not tested it. Please correct me if > I'm wrong. > Let us all try to give each other code example in these discussion instead > of referring to sourcecode. Have anyone looked at competing languages like > Csharp. They got a lot of example codes i MSDN. Lets do the same! Since we don't have few hundred paid employees which main task is too keep the documentation up-to-date we rely on the community to update the Wiki and send patches (for javadocs as well) ;-) > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Any-news-on-1-5-mapping-different-error-pages-for-specific-errors-tp3602151p4585856.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any news on "1.5 - mapping different error pages for specific errors"
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. Please correct me if I'm wrong. Let us all try to give each other code example in these discussion instead of referring to sourcecode. Have anyone looked at competing languages like Csharp. They got a lot of example codes i MSDN. Lets do the same! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Any-news-on-1-5-mapping-different-error-pages-for-specific-errors-tp3602151p4585856.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any news on "1.5 - mapping different error pages for specific errors"
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 > https://cwiki.apache.org/confluence/display/WICKET/RequestCycle+in+Wicket+1.5 > > > On Thu, Jun 16, 2011 at 2:50 PM, nino martinez wael > wrote: >> 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 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any news on "1.5 - mapping different error pages for specific errors"
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.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+Wicket+1.5 > > > On Thu, Jun 16, 2011 at 2:50 PM, nino martinez wael > wrote: >> 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 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any news on "1.5 - mapping different error pages for specific errors"
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+Wicket+1.5 On Thu, Jun 16, 2011 at 2:50 PM, nino martinez wael wrote: > 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 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 >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any news on "1.5 - mapping different error pages for specific errors"
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 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 >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Any news on "1.5 - mapping different error pages for specific errors"
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 > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Any news on "1.5 - mapping different error pages for specific errors"
Does anybody have an idea howto implement this? regards Nino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.5 - mapping different error pages for specific errors
Did anything come out of this.. Im looking to utilize the exception Mapper but I cant find any documentation on it, so do I have to look in the code to discover the funtionality? What I basically want todo is to catch a dbconnection exception and tell the user that there is no connection to the db... It would also be very helpful with a small example in wicket examples.. regards Nino 2011/5/10 Martin Grigorov : > On Tue, May 10, 2011 at 3:55 PM, nimmy wrote: >> Hi Martijn, >> >> I did check out the migration guide but was confused by a reference to a >> non-existing method: >> >> "In Wicket 1.4 it was needed to extend >> org.apache.wicket.RequestCycle.onRuntimeException(Page, RuntimeException). >> Wicket 1.5 gives even better control, by overriding >> org.apache.wicket.Application.newExceptionMapper() it is possible to change >> even the default processing of error pages." >> >> Will lookup IRequestCycleLister instead. > Check it and then as a good user add this information to the wiki page ;-) >> >> Thanks for your help, >> Nim >> >> >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-tp3511899p3511947.html >> Sent from the Users forum mailing list archive at Nabble.com. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.5 - mapping different error pages for specific errors
On Tue, May 10, 2011 at 3:55 PM, nimmy wrote: > Hi Martijn, > > I did check out the migration guide but was confused by a reference to a > non-existing method: > > "In Wicket 1.4 it was needed to extend > org.apache.wicket.RequestCycle.onRuntimeException(Page, RuntimeException). > Wicket 1.5 gives even better control, by overriding > org.apache.wicket.Application.newExceptionMapper() it is possible to change > even the default processing of error pages." > > Will lookup IRequestCycleLister instead. Check it and then as a good user add this information to the wiki page ;-) > > Thanks for your help, > Nim > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-tp3511899p3511947.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.5 - mapping different error pages for specific errors
Hi Martijn, I did check out the migration guide but was confused by a reference to a non-existing method: "In Wicket 1.4 it was needed to extend org.apache.wicket.RequestCycle.onRuntimeException(Page, RuntimeException). Wicket 1.5 gives even better control, by overriding org.apache.wicket.Application.newExceptionMapper() it is possible to change even the default processing of error pages." Will lookup IRequestCycleLister instead. Thanks for your help, Nim -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-tp3511899p3511947.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.5 - mapping different error pages for specific errors
Check the migration guide, see and read up about IRequestCycleListener Martijn On Tue, May 10, 2011 at 3:45 PM, nimmy wrote: > Hi, > > How do you map different error pages for specific errors in Wicket v1.5RC2? > > You used to override onRuntimeException in v1.4 but this is no longer the > case. > > Thanks, > Nim > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-tp3511899p3511899.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
1.5 - mapping different error pages for specific errors
Hi, How do you map different error pages for specific errors in Wicket v1.5RC2? You used to override onRuntimeException in v1.4 but this is no longer the case. Thanks, Nim -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-mapping-different-error-pages-for-specific-errors-tp3511899p3511899.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org