Class FlashPersistentFieldStrategy
- java.lang.Object
-
- org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy
-
- org.apache.tapestry5.internal.services.FlashPersistentFieldStrategy
-
- All Implemented Interfaces:
PersistentFieldStrategy
public class FlashPersistentFieldStrategy extends AbstractSessionPersistentFieldStrategy
The "flash" strategy stores data inside thesession
, just likeSessionPersistentFieldStrategy
, but also removes the values from the session on first use. In this way, a short-term value (such as an error message) will "survive" from an action request to a render request and then disappear.
-
-
Constructor Summary
Constructors Constructor Description FlashPersistentFieldStrategy(Request request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
didReadChange(Session session, String attributeName)
Called after each key is read byAbstractSessionPersistentFieldStrategy.gatherFieldChanges(String)
.-
Methods inherited from class org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy
convertApplicationValueToPersisted, convertPersistedToApplicationValue, discardChanges, gatherFieldChanges, postChange
-
-
-
-
Constructor Detail
-
FlashPersistentFieldStrategy
public FlashPersistentFieldStrategy(Request request)
-
-
Method Detail
-
didReadChange
protected void didReadChange(Session session, String attributeName)
Description copied from class:AbstractSessionPersistentFieldStrategy
Called after each key is read byAbstractSessionPersistentFieldStrategy.gatherFieldChanges(String)
. This implementation does nothing, subclasses may override.- Overrides:
didReadChange
in classAbstractSessionPersistentFieldStrategy
- Parameters:
session
- the session from which a value was just readattributeName
- the name of the attribute used to read a value
-
-