Skip to content

maspetsberger/tapestry-conversation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 ...

About

Tapestry Conversation and Window State Handling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.9%
  • JavaScript 4.1%