You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by dpark <dp...@exchangesolutions.com> on 2008/07/31 21:54:27 UTC
Throw PageRedirectException from within Custom Exception Page
Is it possible to throw a PageRedirectException from within a custom
ExceptionPage.pageBeginRender?
Tapestry doesn't seem to like it.
I get a:
Unable to present exception page: org.apache.tapestry.PageRedirectException
--
View this message in context: http://www.nabble.com/Throw-PageRedirectException-from-within-Custom-Exception-Page-tp18762228p18762228.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Throw PageRedirectException from within Custom Exception Page
Posted by Andreas Andreou <an...@gmail.com>.
yea - it's not supported... tap's exception page shouldnt throw exceptions...
It seems like you need to do special handling depending on the
exception - in that case,
it's best to define and register your own ExceptionPresenter
implementation, that'll do the routing
you desire... The default implementation just activates the exception
page and passes the exception
caught
Here's an example from trails http://www.trailsframework.org/Handling+exceptions
On Thu, Jul 31, 2008 at 10:54 PM, dpark <dp...@exchangesolutions.com> wrote:
>
> Is it possible to throw a PageRedirectException from within a custom
> ExceptionPage.pageBeginRender?
>
> Tapestry doesn't seem to like it.
> I get a:
> Unable to present exception page: org.apache.tapestry.PageRedirectException
> --
> View this message in context: http://www.nabble.com/Throw-PageRedirectException-from-within-Custom-Exception-Page-tp18762228p18762228.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org