Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2005 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
 //     http://www.apache.org/licenses/LICENSE-2.0
 //
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry.record;
Defines how a persistent property is made persistent. The typical implementation is to store the persistent property into the session as a session attribute.

Author(s):
Howard M. Lewis Ship
Since:
4.0
{

    
Stores the new value.

Parameters:
pageName the name of the page containing the property
idPath the path to the component with the property (may be null)
propertyName the name of the property to be persisted
newValue the new value (which may be null)
    void store(String pageNameString idPathString propertyName,
            Object newValue);

    
Returns a collection of PropertyChanges. These represent prior changes previously stored. The order is not significant. Must not return null. Does not have to reflect changes made during the current request (this method is typically invoked as part of rolling back a page to a prior state, before any further changes are possible).
    Collection getStoredChanges(String pageName);

    
Invoked to discard any stored changes for the specified page.
    void discardStoredChanges(String pageName);

    
Invoked by a org.apache.tapestry.services.LinkFactory , the parameters may be modified (added to) to store information related to persistent properties. This method is forwarded to all PropertyPersistenceStrategys.

Parameters:
encoding Service encoding, which indentifies the URL and the query parameters from which the org.apache.tapestry.engine.ILink will be created.
post if true, then the link will be used for a post (not a get, i.e., for a HTML form); this may affect what information is encoded into the link
See also:
PropertyPersistenceStrategySource
            boolean post);
New to GrepCode? Check out our FAQ X