On Mon, 20 May 2013 15:04:35 -0300, Ken in Nashua <kcola...@live.com>
wrote:
I tried the context specified below but clazz during activation always
comes in as null.
is this a tapestry bug ?
No. If you wan to get the class as the first page activation context
value, it should be the first value in the List or array you return in
onPassivate(). Keep in mind that the same order of values in onActivate()
should be used in onPassivate(). By the way, including 'this' in the
activation context makes no sense to me.
@OnEvent(EventConstants.ACTIVATE)
Object onActivate(Class clazz) {
if (clazz == null)
return Utils.new404(messages);
this.beanType = clazz;
return null;
}
@OnEvent(EventConstants.PASSIVATE)
Object[] passivate() {
return new Object[] { team, team.getId(), this };
}
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org