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

Reply via email to