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(); ...

Get Oracle ADF 11gR2 Development Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.