Tuesday, December 28, 2010

Access Application Module, ViewObject programmatically from Managed/Backing Beans

At times we need to programmatically update viewobject and do lot of other funtions on them. To achieve this we have to first connect to application module as it is able to query all the view objects in it.
The code which is required is:
ApplicationModule am = ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");



Note: The view objects which you are trying to access should be part of your jsf page definition (in executables), else you will not be able to refer it.