When immediate is true on a button, the command’s action and ActionListeners, including the default ActionListener provided by the JavaServer Faces implementation, will be executed during Apply Request Values phase of the request processing lifecycle, rather than waiting until the Invoke Application phase.
In case of a text field, by default, values are converted and validated together in the Process Validators phase. However, if you need access to the value of a component during Apply Request Values – for example, if you need to get the value from an actionListener on an immediate commandButton – then setting this to "immediate" makes that possible.
Life Cycle for Immediate="true" on input component is
Restore View->Apply Request Values->Process Validations->Update Model->Invoke App->Render Response
Life Cycle for Immediate="true" on command component is
Restore View->Apply Request Values->Render Response.
Posted Date:- 2021-09-27 22:19:22