Many a times it is required to retrieve the ApplicationModule object from ADF managed beans, for example, to programmatically query a view object. Invoke the below class like : AppModuleBean.getService(FacesContext.getCurrentInstance(), APP_MODULE_NAME)) This gives 3 different ways to retrieve the AppModule. Using BindingContext. Evaluating DataControl EL expression. Evaluating Bindings EL expression. public class AppModuleBean { public static ApplicationModule getService(FacesContext fc, String name) { DCDataControl dc = fromBindingContext(name); if(dc == null) { dc = fromEvaluatingDataControlEL(fc, name); ...
About anything and everything from my daily consulting life. ADF, Java, Weblogic, Unix shell scripting, Mobile technology..etc. etc.. The views expressed on this blog are my own and do not necessarily reflect the views of my employer.