Hi Angelo,

Put

  this.person.view_count = this.person.view_count + 1;

in setupRender (@SetupRender) and put @CommitAfter on that.

-Filip

On 2008-09-03 15:36, Angelo Chen wrote:
Hi,

I have code like this, I updated the view_count in the onActivate

public class Page { private Person person;
  @CommitAfter  
void onActivate(Person person) { this.person = person; this.person.view_count = this.person.view_count + 1; } Object onPassivate() { return this.person; } }

Now I have this, very neat, but where can I place the @CommitAfter?

public class Page { @PageActivationContext @Prperty private Person person;
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to