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 <[EMAIL PROTECTED]> 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