Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Typos in example code

...

Code Block
titleExample: Session Strategy
  @Persist
  private intoint value;

Flash Strategy

The flash strategy stores information in the session as well, just for not very long. Values are stored into the session, but then deleted from the session as they are first used to restore a page's state.

...

Code Block
titleExample: Flash Strategy
  @Persist(PersistenceConstants.FLASH)
  private intoint value;

Client Strategy

The field is persisted onto the client; you will see an additional query parameter in each URL (or an extra hidden field in each form).

...

Code Block
titleExample: Client Strategy
  @Persist(PersistenceConstants.CLIENT)
  private intoint value;

Persistence Strategy Inheritance

...