You mean in rendering phase, onActivate is called twice? It is always called only one time in my experience. I am interested in whether you called this page onActivate from other page?
DH ----- Original Message ----- From: "Angelo Chen" <angelochen...@yahoo.com.hk> To: <users@tapestry.apache.org> Sent: Tuesday, February 17, 2009 5:02 PM Subject: t5: onActivate called twice > > Hi, > > I have following code, onActivate was called correctly 1st time, but it will > be called again during the rendering and obj[0] has 'images', obj[1] > has 'loading.gif', I do provide a onPassivate, any idea? thanks > > private Object[] _objs; > > @CommitAfter > public Object onActivate(Object[] obj) { > _objs = obj; > if (_objs.length > 0) { > String id1 = (String) _obj[0]; > String id2 = (String) _obj[1]; > ... > return null > } else return Other.class; > } > > public Object[] onPassivate() { > return _objs; > } > > -- > View this message in context: > http://www.nabble.com/t5%3A-onActivate-called-twice-tp22053148p22053148.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >