Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

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
languagejava
title"Hibernate Entity Strategy"
  @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.

...