How to set JSF binding attribute programmatically in Oracle ADF?

One of the usual scenario in Oracle ADF is to need to set the value of a JSF View Object binding attribute programmatically in a Java Bean triggered by a user Action.

For example, I was once asked to set the value of a View Object attribute displayed as an outputText in JSF to a sentence when the user clicks a specific button.

There is multiple ways to implement this. From pure JSF Groovy to exposing the View Object class.

Here are two simple of them:

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top