Yep, Matthias is correct, though to be fuly specific it's
called during Process Validations, unless immediate="true",
in which case it's called during Apply Request Values.

It's good to learn *exactly* how values move through the
JSF lifecycle:

1. Apply Request Values: submittedValue is set.
2. Process Validators: value is set, submittedValue is cleared,
ValueChangeEvents are delivered (unless validation or conversion
fails)
3. Update Model: model is set, value is cleared
4. Invoke Application: no processing of values
5. Render Response: values are retrieved from submitted value if set,
 otherwise value if set, otherwise model

If "immediate" is true, add that Process Validators logic to Apply
Request Values.

-- Adam



On 5/2/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> My understanding is that valuechangelistener  is called before UpdateModel.

ValueChangeListeners are called during Phase 3 (Process Validations)
Phase 5 (Invoke Application) there the ActionListeners are called
before the "action method" of your backing bean

An interesting blog entry about "playing" with JSF's lifecycle is [1].

-Matthias

[1] http://www.jroller.com/page/cschalk?entry=getting_familiar_with_the_jsf

Reply via email to