Re: Handling exceptions during render

2008-11-04 Thread aditsu
y? Adrian -- View this message in context: http://www.nabble.com/Handling-exceptions-during-render-tp20301737p20336613.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Handling exceptions during render

2008-11-04 Thread aditsu
t the whole page (the current behavior). Anyway, I want to have the option to catch exceptions from child components at certain points that I can define. And I think I got a new idea.. involving replace and RestartResponseException Adrian -- View this message in context: http://www.nabble.com/Hand

Re: Handling exceptions during render

2008-11-04 Thread Igor Vaynberg
; code, what would you rather have the users see (whether there are 10, 1000 > or 1000 users)? A big "internal error" page? Or a mostly-working page, > but with one part missing or showing an error message? Especially if access > to that same page is required in order to fix the pr

Re: Handling exceptions during render

2008-11-04 Thread aditsu
me page is required in order to fix the problem! -- View this message in context: http://www.nabble.com/Handling-exceptions-during-render-tp20301737p20327592.html Sent from the Wicket - User mailing list archive at Nabble.com. - To uns

Re: Handling exceptions during render

2008-11-03 Thread Alex Objelean
age flow. In >> other words: just make sure that no exceptions are thrown. >> >> Regards, >> Erik. >> >> >> aditsu wrote: >>> Ok, but how would that let me render the rest of the page? >> >> > > -- View this message in c

Re: Handling exceptions during render

2008-11-03 Thread Erik van Oosten
Yeah, I was afraid it would come to that. Sorry, you've apparently done some more research already... Another thing I sometimes do is take the Wicket class and put it in the web-project's classpath but with my changes (e.g. remove a final). All servlet containers will load earlier from the WEB-

Re: Handling exceptions during render

2008-11-03 Thread aditsu
s are thrown. > > Regards, > Erik. > > > aditsu wrote: >> Ok, but how would that let me render the rest of the page? > > -- View this message in context: http://www.nabble.com/Handling-exceptions-during-render-tp20301737p20303184.html Sent from the Wicket - Use

Re: Handling exceptions during render

2008-11-03 Thread Alex Objelean
timeException(final Page page, final >> RuntimeException e) { >> //do something >> return null; >> } >> } >> } >> [/CODE] >> >> >> Alex Objelean >> >

Re: Handling exceptions during render

2008-11-03 Thread Erik van Oosten
It won't. I think you have to dig deeper into the request rendering. Perhaps that overriding MarkupContainer#renderAll on all your Panels that have expected exceptions will help. But then again, exceptions are intended for controlling the non-expected. You should not use exceptions for normal

Re: Handling exceptions during render

2008-11-03 Thread Alex Objelean
d. >> >> >> Alex Objelean >> > > -- View this message in context: http://www.nabble.com/Handling-exceptions-during-render-tp20301737p20302752.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Handling exceptions during render

2008-11-03 Thread aditsu
exception, you have to override default > RequestCycle (newRequestCycle method) in your application class and > override RuntimeException e)> method. > > > Alex Objelean > -- View this message in context: http://www.nabble.com/Handling-exceptions-during-render-tp2030173

Re: Handling exceptions during render

2008-11-03 Thread aditsu
public Page onRuntimeException(final Page page, final > RuntimeException e) { > //do something > return null; > } > } > } > [/CODE] > > > Alex Objelean > -- View this message in context: http://www.nabble.com/Handling-exce

Re: Handling exceptions during render

2008-11-03 Thread Alex Objelean
component. Such as a getObject method from a model throwing a > runtime exception. > > Adrian > -- View this message in context: http://www.nabble.com/Handling-exceptions-during-render-tp20301737p20302542.html Sent from the Wicket - User m

Handling exceptions during render

2008-11-03 Thread aditsu
unknown component or child component. Such as a getObject method from a model throwing a runtime exception. Adrian -- View this message in context: http://www.nabble.com/Handling-exceptions-during-render-tp20301737p20301737.html Sent from the Wicket - User mailing list archive at Nabble.com