O'Reilly logo

Oracle ADF 11gR2 Development Beginner's Guide by Vinod Krishnan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required