org.apache.wicket.markup.html.form.persistence
Interface IValuePersister

All Superinterfaces:
IClusterable, Serializable
All Known Implementing Classes:
CookieValuePersister

Deprecated. remove in 1.5

@Deprecated
public interface IValuePersister
extends IClusterable

Wicket users and developers should not need to care about where or how form values are saved. An implementer of IValuePersister persister is responsible for storing and retrieving FormComponent values. Different means of storing values for form components may be implemented. CookieValuePersister, for example, uses an HTTP cookie to persist the value of a form component. Other implementations may instead persist form values to server-side storage for security reasons.

Author:
Juergen Donnerstag, Jonathan Locke

Method Summary
 void clear(FormComponent<?> formComponent)
          Deprecated. Remove the key/value associated witht the formComponent
 void clear(String key)
          Deprecated. Remove the key/value pair
 void load(FormComponent<?> formComponent)
          Deprecated. Retrieve the persisted value and if found update the form components model
 String load(String key)
          Deprecated. Retrieve the key from the persistence store
 void save(FormComponent<?> formComponent)
          Deprecated. Convenience method for FormComponent.
 void save(String key, String value)
          Deprecated. Saves the key/value pair
 

Method Detail

save

void save(String key,
          String value)
Deprecated. 
Saves the key/value pair

Parameters:
key - The key to identify the entry
value - The value

save

void save(FormComponent<?> formComponent)
Deprecated. 
Convenience method for FormComponent. key defaults to formComponent.getPageRelativePath() and value to formComponent.getDefaultModelAsString()

Parameters:
formComponent -

load

String load(String key)
Deprecated. 
Retrieve the key from the persistence store

Parameters:
key - The key to identify the entry
Returns:
The loaded value

load

void load(FormComponent<?> formComponent)
Deprecated. 
Retrieve the persisted value and if found update the form components model

Parameters:
formComponent -

clear

void clear(String key)
Deprecated. 
Remove the key/value pair

Parameters:
key - The key to identify the entry

clear

void clear(FormComponent<?> formComponent)
Deprecated. 
Remove the key/value associated witht the formComponent

Parameters:
formComponent -


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.