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
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
; 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
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
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
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-
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
timeException(final Page page, final
>> RuntimeException e) {
>> //do something
>> return null;
>> }
>> }
>> }
>> [/CODE]
>>
>>
>> Alex Objelean
>>
>
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
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]
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
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
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
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
14 matches
Mail list logo