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.

Chang<strong>in</strong>g the lifecycle (1)<br />

• immediate property<br />

• UIComm<strong>and</strong> components:<br />

• action is called immediately. No validation or model update.<br />

• Use it for a cancel button<br />

• UIInput components:<br />

• components value will be validated <strong>and</strong> converted <strong>in</strong> Apply Request<br />

Values<br />

• a ValueChangeEvent is generated <strong>and</strong> it’s listener is called after”Apply<br />

Request Values”<br />

• call<strong>in</strong>g facesContext.renderResponse() <strong>in</strong>side a ValueChangeListener<br />

go to “RenderResponse”<br />

• No conversion <strong>and</strong> validation of other (non immediate) components!<br />

45

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

Saved successfully!

Ooh no, something went wrong!