Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Tapestry Conversation and Window State Handling

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

Tapestry Conversation

Window and conversation scope for Tapestry web framework.

Usage

In your pages and components you can use the @WindowState annotation to mark objects as per-window. This works similar to @SessionState but stores the data in the session per window. When the user opens a new browser tab or window another object will be used (JavaScript needs to be activated to make this work).

@WindowState
private MyObject object;

The same applies to @Persist("window") which stores page state variables on a per-window basis in the session.

If you want to change the global persist strategy to per-window you have to change the configuration "tapestry.persistence-strategy":

public static void contributeApplicationDefaults(MappedConfiguration<String,String> configuration)
{
  configuration.add(SymbolConstants.PERSISTENCE_STRATEGY, ConversationPersistenceConstants.WINDOW);
}

How it works

tbd ...

Something went wrong with that request. Please try again.