Search code examples
jsf-2java-ee-6myfacescomposite-component

How can i use the markInitialState method?


How can i use the markInitialState() method? I want to save the initial state of my component.

Is markInitialState for this?


Solution

  • markInitialState is for the container/context's use as indicated here. Use saveState(FacesContext ct) for your needs and restoreState(FacesContext ctx) to restore the same object. Cheers