public class FlashPersistentFieldStrategy extends AbstractSessionPersistentFieldStrategy
session
, just like SessionPersistentFieldStrategy
, 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 and Description |
---|
FlashPersistentFieldStrategy(Request request) |
Modifier and Type | Method and Description |
---|---|
protected void |
didReadChange(Session session,
String attributeName)
Called after each key is read by
AbstractSessionPersistentFieldStrategy.gatherFieldChanges(String) . |
convertApplicationValueToPersisted, convertPersistedToApplicationValue, discardChanges, gatherFieldChanges, postChange
public FlashPersistentFieldStrategy(Request request)
protected void didReadChange(Session session, String attributeName)
AbstractSessionPersistentFieldStrategy
AbstractSessionPersistentFieldStrategy.gatherFieldChanges(String)
. This implementation does nothing,
subclasses may override.didReadChange
in class AbstractSessionPersistentFieldStrategy
session
- the session from which a value was just readattributeName
- the name of the attribute used to read a value${project.version} - Copyright © 2003-2015 The Apache Software Foundation.