First page Back Continue Last page Graphics

Tracing Data Binding: From Data Control to Databound Components


Notes:

Tracing Data Binding: From Data Control to Databound Components (continued)

Next is a built-in operation that is available for all collections.

The Previous button uses an operation binding to call the Previous built-in operation. The Previous button is disabled when the page is showing the first row; similarly the Next button is disabled when the page is showing the last row. This is controlled by the button’s disabled attribute:

<af:commandButton actionListener="#{bindings.Next.execute}"

text="Next"

disabled="#{!bindings.Next.enabled}"/>

The disabled attribute is set by a conditional expression: if the Next operation is not enabled then the button is disabled; and in the underlying ADF code the Next operation is enabled only if there are more rows of data to step through.