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; 

}
-- 
View this message in context: 
http://www.nabble.com/T5%3A-%40PageActivationContext-and-%40CommitAfter-tp19289321p19289321.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to