myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@gmail.com>
Subject Re: <saveState> restore state complain NULL, ignore "rendered"
Date Thu, 29 Dec 2005 16:30:18 GMT
Dave,

The saving and restoring happen during saveState/restoreState.  These
components will exist in the component tree even if they're not
rendered.
So I don't think you can conditionally chose to save state or not.

Hopefully someone will jump in and correct me if I'm wrong.


On 12/25/05, Dave <javaone9@yahoo.com> wrote:
>
> <h:panelGroup rendered="#{backBean.resultBean != null}" >
> <t:saveState value="#{backBean.resultBean.data}" />
>
>
> </h:panelGroup>
>
>
> backBean.resultBean is null.  Saving state is OK. but restoring state
> complains that resultBean is NULL. Should it be ignored if the resultBean is
> null instead of an error ?
>
> One thing I do not understand. When the "rendered" is false, the
> <t:saveState> should be ignored. But JSF (or myFaces) is still
> saving/restoring its data(backBean.resultBean.data in this case). Thanks!.
>
>  ________________________________
> Yahoo! Photos
>  Ring in the New Year with Photo Calendars. Add photos, events, holidays,
> whatever.
>
>

Mime
View raw message