Wednesday 26 September 2012

Get Application Module object in Managed bean


FacesContext context = FacesContext.getCurrentInstance();

BindingContext bindingContext = BindingContext.getCurrent();

//open the dataBindings.cpx file and check for application module name inside data control usages

DCDataControl dc  = bindingContext.findDataControl("name_of_application_module in dataBindings.cpx");

AppModuleImpl appM = (AppModuleImpl)dc.getDataProvider();

No comments:

Post a Comment