Hi Taha, thanks for your help. I am using an onActivate() to receive the parameter, I have to use onPassivate() instead? I think, that I am not understanding.
Regards! On Mon, May 28, 2012 at 12:36 PM, Taha Siddiqi <tawus.tapes...@gmail.com>wrote: > Hi > > You can use onPassivate()/onActivate instead of @Persist. > > Your code is missing an onPassivate, so context will not persisted. > > regards > Taha > > > On May 28, 2012, at 8:59 PM, Juan Alba wrote: > > > Hi, > > > > I am having problems with my pages and I am not sure if what I am doing > to > > solve it is right. > > > > > > Page Class: > > > > ... > > @Property > > private Long myObjectId; > > > > @Inject > > private MyService myService; > > > > onActivate(Long objectId){ > > myObjectId = objectId; > > } > > > > void onSuccess(){ > > MyObject myObject = myService.getMyObjectById(myObjectId); > > ... > > } > > > > > > So, the parameter is alright during the onActivate, but when I submit the > > forrm, I am trying to save the changes but myObjectId is null. > > > > I am using @Persist to keep the value, but I am not suer if this is ok > > because I am having a lot of properties with @Persist and I don't know if > > this ok. > > > > > > Can somebody give me a hint? > > > > Thanks! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >