12.06.2015 Views

JSF and Apache MyFaces in Action - ApacheCon

JSF and Apache MyFaces in Action - ApacheCon

JSF and Apache MyFaces in Action - ApacheCon

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Process Validations – Phase 3<br />

• Calls listener for the ValueChangeEvent<br />

• conversion (!) <strong>and</strong> validation<br />

• processValidators(); called recursively, starts with UIViewRoot<br />

• getSubmittedValue(); like “21.11.2005”<br />

• converts to an object of class java.util.Date<br />

• enforce validation by call<strong>in</strong>g the registered validators<br />

• save the correct value („local-value“) by call<strong>in</strong>g setValue()<br />

• Error occurs on conversion or validation:<br />

GO TO Render-Response-Phase<br />

41

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!