THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The value for each field is the strategy used to store the field between requests.
Session Strategy
Wiki Markup |
---|
{float:right|background=#eee|padding=0 1em}
*JumpStart Demo:*
[Storing Data in a Page| |
...
https://tapestry-jumpstart. |
...
org/jumpstart/examples/state/storingdatainapage] [Passing Data Between Pages| |
...
https://tapestry-jumpstart. |
...
org/jumpstart/examples/state/passingdatabetweenpages] {float} |
The session strategy stores field changes into the session; the session is created as necessary. Session strategy is the default strategy used unless otherwise overridden.
...
Code Block | ||||
---|---|---|---|---|
| ||||
@Persist(HibernatePersistenceConstants.ENTITY) private User user; |
...
The value stored in the HttpSession is a token for the entity: its Java class name and primary key. When the field is restored in a later request, the entity is re-instantiated using that data.
...