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: