The definition of a PartialStateHolder according to the PartialStateHolder interface:
void clearInitialState() boolean initialStateMarked() void markInitialState()
Note that the methods above do not mention that a PartialStateHolder extends from StateHolder. Be aware that if you want to implement partial state saving you will also need to implement the methods of the StateHolder interface. Having that said, what are the 3 methods used for?
The clearInitialState method can be used to tell the JSF runtime that you are no longer interested in partial state saving and that you want full state saving.
The initialStateMarked method can be used to determine if the PartialStateHolder has its initial state marked.
The markInitialState method will be called by the JSF runtime after creating components and adding them to the component tree. Once this method is called the component will track changes since the initial state.
OK that is all interesting but how does that work for real? Well imagine the following:
Posted October 18, 2012