Matthias Kahlau wrote:
Hi!
Can somebody confirm or correct what I found out about the rendering
behavior of EditableValueHolders:
- renders its submitted value, if not null
Yep. This allows values that fail validation to be re-rendered rather
than just "disappearing".
Note that when validation succeeds, the submitted value is immediately
set to null.
- if submitted value is null, renders its local value, if not null
Yep.
Note, however, that in the "update model" phase, if there is an
associated value-binding then the local value is pushed into the model
and the local value is immediately set to null. See UIInput.updateModel.
So in the render phase, the local value will only be non-null for
components that have no value-binding for the "value" attribute.
- if both values are null, renders the value of the tags value attribute
Yep. Well, I would put it as "fetches the value from the model via the
associated value-binding, if any".
Well, that's how I understand it anyway. Corrections welcome.
Cheers,
Simon