Complex usage of a managed bean
A managed bean is the place where the complex UI logic is added for an ADF web application. Complex bean logic involves listener logic for the components, page load logic, component-initialization logic, and so on. Some UI use cases involve other operations that have to be performed in the managed bean. The following are some of the use cases, snippets, and implementations that involve writing logic in a managed bean:
Getting the iterator information:
BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding dciterContainer = (DCIteratorBinding)bindings.get(iteratorName);
Getting the current row from the iterator:
DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding iterator = bc.findIteratorBinding("VOIterator"); Row r = iterator.getCurrentRow(); String val = (String)r.getAttribute("fieldName");
Accessing scope variables:
AdfFacesContext context = AdfFacesContext...