Skip to main content

Posts

Showing posts with the label retrieve Application Module

ADF Utility : Retrieve ApplicationModule object from Managed Bean

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