On Fri, 09 Nov 2012 17:29:16 -0200, Andy Pahne <a...@sapida.de> wrote:
I am trying to do a simple thing, which used to work with previous
versions, at least as far as I can remember. Plwase see code snippet
below.
The thing is: it never redirects to the "ArticleUnknown" page, even when
article is null.
setupRender() *never* accepted redirections. You should use onActivate()
for that.
Am I doing something wrong here? It just seems natural to me to do it
like in the example code.
setupRender is a render phase event which exists only in Tapestry 5.
activate (handled by onActivate() method, if you write one), is not a
render phase event, so it can be used for redirections. Please check
http://tapestry.apache.org/page-navigation.html.
I remember in previous Tapestry versions there was something like:
void pageValidate(PageEvent e){
}
Tapestry 5 is a complete rewrite from Tapestry 4, so don't expect that
anything that worked on T4 to work on T5 unchanged. Things are way easier
now. :)
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org