Lisa wrote:
I'm not seeing that the values are restored at the beginning. I must have
something wrong.
I have a BB that has 3 setters called after instantiation. I need the
saveState restore to happen before these setters are called but it looks
like the values are being restored much later.
Is there a way to have the state restored before the setters are called?
The t:saveState bean does its work in the restore-view phase. It will
therefore definitely happen before any value-binding expressions on JSF
components are evaluated.
If you are seeing normal setters called during the "update model" phase
but t:saveState hasn't executed to restore the saved data then you have
something set up wrong - ie t:saveState is not being processed at all,
or is updating some variable other than the one you are expecting.
Are you definitely setting the value attribute to a
value-binding-expression, ie
<t:saveState value="#{myBean}"/>
not
<t:saveState value="myBean"/>
?
Regards,
Simon