Tuesday, November 13, 2018

Process and update in primefaces

process: Component(s) to process partially instead of whole view.
update: Component(s) to update with ajax.

Both are PrimeFaces features to provide partial view processing and partial rendering. You can control what to execute in lifecycle and what to render with ajax.

When using backing bean properties in expression language
- process attribute calls SETTER methods
- update attribute calls GETTER methods

Example:

<p:ajax listener="#{i88CaBean.handleChange}" update="@form" />