Using @PageActivationContext you don't have to write the onActivate and onPassivate handler methods. Tapestry will generate these methods for you. The following classes are equivalent. If Person is a Hibernate entity you don't even need a ValueEncoder for it.
public class Page { @PageActivationContext private Person person; } public class Page { private Person person; void onActivate(Person person) { this.person = person; } Object onPassivate() { return this.person; } } On Sat, Jun 28, 2008 at 10:33 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I came across this new annotation in 5.0.13: @PageActivationContext, not > quite understand its use, anybody care to explain? Thanks, > > Angelo > -- > View this message in context: > http://www.nabble.com/T5%3A-Using-%40PageActivationContext-tp18168624p18168624.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] > > -- Best regards, Igor Drobiazko