First page Back Continue Last page Text

oracle adf workshop

Notes:


Accessing Data Controls Programmatically

You may need to add code to your JSF managed bean or ADF Controller action to access data or methods from your data source. In general it is a better practice to write methods on your data source and expose them in the Data Controls panel, but sometimes that might not be possible. The first example in the slide shows code that accesses the data control to get a handle to its application module.

The second example in the slide shows some sample code that gets an attribute value from an iterator binding. You might need to do this, for example, from a backing bean.

One of the more common things in backing bean code is to access the current ADF binding container. A convenience API in JDeveloper enables you to access the binding container as in the code shown in the third example in the slide.