Hi,
there are two hints that may help you:
You have two additional options for the parameters of you onActivate() method:
a) One parameter of type Object[]
b) One parameter of type EventContext
(http://tapestry.apache.org/tapestry5/apidocs//org/apache/tapestry5/EventContext.html)
i use b) very often
felix
Vjeran Marcinko schrieb:
Hello,
Is there any way to genericaly extract activation context (array or
EventContext) from some page instance?
I'm asking this because I want my page authorization to work in a way to
remember what page and activation context has been requested by
unauthorized user, so that after he logs in successfuly, I would
redirect him to that requested page. For that to work, inside my
SecuredPage superclass, I have to be able to extract requested page name
(which is easy) and also activation context (which I don't know how), so
I would be able to store them inside LogIn page form for later access in
case of successful login.
BTW, is there also some generic way to apply activation context on page
instance without calling onActivate insid ecode, because I would
probably have something like:
public void onActivate(Long id) {...}
whereas I have activation in a array form?
Or some other suggestion for implementing this feature maybe? I guess
this functionality would also be useful for implementing some generic
breadcrumbs component....
Regards,
Vjeran
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org