-
- All Superinterfaces:
- StateHolder
- All Known Implementing Classes:
- AjaxBehavior, BeanValidator, BehaviorBase, ClientBehaviorBase, DateTimeConverter, DoubleRangeValidator, EnumConverter, HtmlBody, HtmlColumn, HtmlCommandButton, HtmlCommandLink, 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, NumberConverter, RegexValidator, UIColumn, UICommand, UIComponent, UIComponentBase, UIData, UIForm, UIGraphic, UIInput, UIMessage, UIMessages, UINamingContainer, UIOutcomeTarget, UIOutput, UIPanel, UIParameter, UISelectBoolean, UISelectItem, UISelectItems, UISelectMany, UISelectOne, UIViewAction, UIViewParameter, UIViewRoot
public interface PartialStateHolder extends StateHolder
Components that want to leverage the partial state saving feature must implement this interface instead of implementing
StateHolder
, from which this interface inherits.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
clearInitialState()
Reset the PartialStateHolder to a non-delta tracking state.
boolean
initialStateMarked()
Return
true
if delta state changes are being tracked, otherwisefalse
void
markInitialState()
The runtime must ensure that the
markInitialState()
method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state.-
Methods inherited from interface javax.faces.component.StateHolder
isTransient, restoreState, saveState, setTransient
-
-
-
-
Method Detail
-
markInitialState
void markInitialState()
The runtime must ensure that the
markInitialState()
method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure thatinitialStateMarked()
returnstrue
from the timemarkInitialState()
is called untilclearInitialState()
is called, after which timeinitialStateMarked()
must returnfalse
. Also, during the time that the instance returnstrue
frominitialStateMarked()
, the implementation must return only the state that has changed in its implementation ofStateHolder.saveState(javax.faces.context.FacesContext)
.- Since:
- 2.0
-
initialStateMarked
boolean initialStateMarked()
Return
true
if delta state changes are being tracked, otherwisefalse
- Since:
- 2.0
-
clearInitialState
void clearInitialState()
Reset the PartialStateHolder to a non-delta tracking state.
- Since:
- 2.0
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/faces/component/PartialStateHolder.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.