Re: Property is null onSuccess()

2012-06-01 Thread Howard Lewis Ship
I you have a single value to store in the page activation context, use the @PageActivationContext field annotation, and Tapestry will provide the activate and passivate event handlers for you. However, it (currently) only supports a single field. On Mon, May 28, 2012 at 1:08 PM, Thiago H de Pau

Re: Property is null onSuccess()

2012-05-28 Thread Thiago H de Paula Figueiredo
On Mon, 28 May 2012 14:39:34 -0300, Juan Alba wrote: Thanks for the help Taha. I am taking a look on these links. At first sight I see that the onPassivate is returning a Long (in the example), in the case that I have 2 parameters on the onActivate method, how do I use them without persist?

Re: Property is null onSuccess()

2012-05-28 Thread Juan Alba
Thanks for the help Taha. I am taking a look on these links. At first sight I see that the onPassivate is returning a Long (in the example), in the case that I have 2 parameters on the onActivate method, how do I use them without persist? I can't do 2 onPassivate() :S Regards! On Mon, May 28,

Re: Property is null onSuccess()

2012-05-28 Thread Taha Siddiqi
You need to use both Please read http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/onactivateandonpassivate/3 http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/whatiscalledandwhen regards Taha On May 28, 2012, at 10:31 PM, Juan Alba wrote: > Hi Taha, than

Re: Property is null onSuccess()

2012-05-28 Thread Juan Alba
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 wrote: > Hi > > You can use onPassivate()/onActivate instead of @Persist. > > Y

Re: Property is null onSuccess()

2012-05-28 Thread Taha Siddiqi
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

Property is null onSuccess()

2012-05-28 Thread Juan Alba
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 = myServi