incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: facelets.BUILD_BEFORE_RESTORE and state saving
Date Thu, 08 Feb 2007 23:34:22 GMT
When are you calling setReadOnly()?

The way BUILD_BEFORE_RESTORE affects things
is by calling markInitialState() on each component,
which triggers the underlying FacesBean to only
store the state set after this call.

-- Adam


On 2/8/07, Martin Koci <Martin.Koci@aura.cz> wrote:
> Hello,
>
> how exactly will facelets.BUILD_BEFORE_RESTORE=true affect state
> saving / restoring?
>
> I use following code;
>
> if (component instanceof CoreInputText) {
>                     CoreInputText coreInputText = (CoreInputText)
> component;
>                     coreInputText.setReadOnly(true);
>                 }
>
> for switching all input component to readOnly mode. That state outlives
> all consequent postbacks.
>
> But with facelets.BUILD_BEFORE_RESTORE =true this dont work anymore -
> next postback "resets" read only state.
>
> Is it intended?
>
> Thanks,
>
>
> Martin
>
>
>

Mime
View raw message