Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changes per TAP5-1205 ("merge in documentation from trunk")

...

In this example, just like the first one, the component's only job is to write out a fixed message. The @BeginRender annotation is a type of component life cycle render phase annotation, a method annotation that instructs Tapestry when and under what circumstances to invoke methods of your class.

...

Deprecated
since5.2

For Tapestry 5.1 and earlier, if in the rare event that you have a variable that can keep its value between requests and you would like to defeat that reset logic, then you can add a @Retain annotation to the field. You should take care that no client-specific data is stored into such a field, since on a later request the same page instance may be used for a different user. Likewise, on a later request for the same user client, a different page instance may be used.

Use persistent fields to hold client-specific information from one request to the next.

...