The image shows a flowchart of examples of events and values in a J S F lifecycle. The steps are:
Restore View
Apply Request Values: Command button: Action Event is queued. Input Text: The string “June 25, 2015” is saved as a submitted value.
Process Validations: Input text: The converter converts the submitted string to a date object. The date object is set as the local value. The local value set attribute is set to true and the submitted value is set to null. The value change event is queued. If an invalid entry has been submitted, the converter would have thrown an exception and placed a message on the queue. The component would remain bound to the original value. The lifecycle would move the Render Response phase, and the incorrect submitted value would render. Process events: Input text: value change event delivered and value change listener called.
Update Model Values: Input text: The date is passed into the model. The local value set attribute is set to false and the local value attribute is set to null.
Invoke Application: Process events: Button Action Event delivered and Action Listener called.
Render Response: Input text: The component value is accessed by calling the get value method, which evaluates the expression #{my bean dot date} and returns the date from the model. The converter calls the get as string method, which takes the date and converts it to a string. The string “June 25, 2015” is rendered in the component. If the entered data had failed conversion or validation, the submitted value would be shown instead of the bound value.