org.apache.tapestry.record
Class PageClientPropertyPersistenceScope
java.lang.Object
org.apache.tapestry.record.AbstractPrefixedClientPropertyPersistenceScope
org.apache.tapestry.record.PageClientPropertyPersistenceScope
- All Implemented Interfaces:
- ClientPropertyPersistenceScope
public class PageClientPropertyPersistenceScope
- extends AbstractPrefixedClientPropertyPersistenceScope
Defines the 'page' scope for persisting client properties. Persist the properties only if the
current page name is the same as that of the property.
- Since:
- 4.0
- Author:
- Mindbridge
- See Also:
ClientPropertyPersistenceScope
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageClientPropertyPersistenceScope
public PageClientPropertyPersistenceScope()
shouldEncodeState
public boolean shouldEncodeState(ServiceEncoding encoding,
String pageName,
PersistentPropertyData data)
- Returns true if the active page name matches the page for this property. This means that
after a new page has been activated, the state is discarded.
- Parameters:
encoding
- identifies the service, URL and base set of parameterspageName
- the page for which data is potentially to be encodeddata
- The data to check.
- Returns:
- true if state should be encoded into the encoding, false otherwise
setRequestCycle
public void setRequestCycle(IRequestCycle requestCycle)
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.