|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=FIELD) @Documented @Retention(value=RUNTIME) @UseWith(value={COMPONENT,MIXIN,PAGE}) public @interface Persist
Identifies a field as persistent, meaning its value persists from one request to the next. Different strategies exist
for how this is accomplished, the most common being the default, "session", which stores the field's value in the
Session
.
meta data property
tapestry.persistence-strategy
. If a value is found, it is used, otherwise the search continues up the
inheritance hierarchy, towards the page. If not found, then the "session" strategy is used.
In this way, the session persistence strategy for a component and all of its sub-components can be controlled by the
containing component.
MetaDataLocator
,
PersistenceConstants
,
ActivationRequestParameter
Optional Element Summary | |
---|---|
String |
value
The strategy used to persist the value. |
public abstract String value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |