You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Chris Mylonas <ch...@opencsta.org> on 2014/02/14 10:53:19 UTC
component event exception, handling in page with onException method
hi users,
i'm having trouble catching a component event exception. it's on a zone
update.
at this stage in development, i want to catch it and just reload the page
Object onException(Throwable cause) {
String message = cause.getMessage();
logger.info("BASTARD");
return this;
}
I'm not seeing my "BASTARD" message in the server log, and i'm not getting
the page reload.
I am just seeing the javscript pop up exception (for the zone update)
This is with tapestry 5.3.7
Any pointers appreciated.
The exception is coming from an EJB. Something doesn't exist in this zone
update preview mode e.g. the user wants a sneaky look behind door number 3,
when door number 3 doesn't exit."
Cheers
Chris
Re: component event exception, handling in page with onException method
Posted by Chris Mylonas <ch...@opencsta.org>.
g'day,
please ignore the previous email.
everything is working as expected now.
a sleep, reboot and relocation to a more relaxing setting seems to be the
way to fix this issue :)
chris
On Fri, Feb 14, 2014 at 8:53 PM, Chris Mylonas <ch...@opencsta.org> wrote:
> hi users,
>
> i'm having trouble catching a component event exception. it's on a zone
> update.
>
> at this stage in development, i want to catch it and just reload the page
>
> Object onException(Throwable cause) {
> String message = cause.getMessage();
> logger.info("BASTARD");
> return this;
> }
>
> I'm not seeing my "BASTARD" message in the server log, and i'm not getting
> the page reload.
>
> I am just seeing the javscript pop up exception (for the zone update)
>
> This is with tapestry 5.3.7
>
> Any pointers appreciated.
>
> The exception is coming from an EJB. Something doesn't exist in this zone
> update preview mode e.g. the user wants a sneaky look behind door number 3,
> when door number 3 doesn't exit."
>
> Cheers
> Chris
>