First page Back Continue Last page Text

oracle adf workshop


Holding Values in Managed Beans

Managed beans enable you to hold values, either in properties of the managed bean or in scoped managed bean variables. You learn more about configuring and coding managed beans in the lesson titled “Responding to Application Events.”

You can pass values between pages by using managed beans to hold the values. The JSF run time manages instantiating these beans on demand when any EL expression references them for the first time. When displaying a value, the JSF run time evaluates the EL expression and pulls the value from the managed bean to populate the component with data when the page is displayed. If the user updates data in the UI component, the JSF run time pushes the value back into the corresponding managed bean based on the same EL expression.