Thursday, December 13, 2012

Explicitly setting values to the model

While the ADF lifecycle updates the model values respective to each of the UI components participating in Create/Edit/Delete use cases by its own,  some times we may need to explicitly update the model value corresponding to a UI component.

E.g. Let us say we have a input text component that has a value change listener. The value change listener is triggered before the corresponding model value is updated. In case we want to update the model value explicitly with value change listener, we can use processUpdates method of the UI component.

Ex: RichOutputText.processUpdates(FacesContext.getCurrentInstance())

No comments:

Post a Comment