Interface StateHolder

All Known Subinterfaces:
PartialStateHolder, StateHelper
All Known Implementing Classes:
AjaxBehavior, BeanValidator, BehaviorBase, BehaviorHolderWrapper, CdiConverter, CdiValidator, ClientBehaviorBase, ComponentRef, ComponentResourceContainer, ComponentStruct, CompositeComponentImpl, DateTimeConverter, DoubleRangeValidator, EnumConverter, HtmlBody, HtmlColumn, HtmlCommandButton, HtmlCommandLink, HtmlCommandScript, HtmlDataTable, HtmlDoctype, HtmlForm, HtmlGraphicImage, HtmlHead, HtmlInputFile, HtmlInputHidden, HtmlInputSecret, HtmlInputText, HtmlInputTextarea, HtmlMessage, HtmlMessages, HtmlOutcomeTargetButton, HtmlOutcomeTargetLink, HtmlOutputFormat, HtmlOutputLabel, HtmlOutputLink, HtmlOutputText, HtmlPanelGrid, HtmlPanelGroup, HtmlSelectBooleanCheckbox, HtmlSelectManyCheckbox, HtmlSelectManyListbox, HtmlSelectManyMenu, HtmlSelectOneListbox, HtmlSelectOneMenu, HtmlSelectOneRadio, LengthValidator, LongRangeValidator, MethodExpressionActionListener, MethodExpressionValidator, MethodExpressionValueChangeListener, NumberConverter, PassthroughElement, RadioRenderer.GroupSelectItem, RegexValidator, RetargetedAjaxBehavior, UIColumn, UICommand, UIComponent, UIComponentBase, UIData, UIDebug, UIForm, UIGraphic, UIImportConstants, UIInput, UIInstructions, UILeaf, UILiteralText, UIMessage, UIMessages, UINamingContainer, UIOutcomeTarget, UIOutput, UIPanel, UIParameter, UIRepeat, UISelectBoolean, UISelectItem, UISelectItemGroup, UISelectItemGroups, UISelectItems, UISelectMany, UISelectOne, UIText, UIValidateWholeBean, UIViewAction, UIViewParameter, UIViewRoot, UIWebsocket

public interface StateHolder

This interface is implemented by classes that need to save their state between requests.

An implementor must implement both saveState(jakarta.faces.context.FacesContext) and restoreState(jakarta.faces.context.FacesContext, java.lang.Object) methods in this class, since these two methods have a tightly coupled contract between themselves. In other words, if there is an ineritance hierarchy, it is not permissable to have the saveState(jakarta.faces.context.FacesContext) and restoreState(jakarta.faces.context.FacesContext, java.lang.Object) methods reside at different levels of the hierarchy.

An implementor must have a public no-args constructor.