Skip to main content

Posts

Showing posts from December, 2013

Oracle ADF Business Components (ADF BC)

Q:What are Entity Objects? A: Entity objects are Data Access Objects (DAOs) that are responsible for persisting & caching data, validation, and encapsulating business rules. ·  Represent a database table or other data source. ·  Handles database caching. ·  Contains attributes representing the database columns. ·  Encapsulates attribute-level and entity –level validation logic. ·  Can contain custom business methods. Q : Can an entity object be based on two Database Objects(tables/views) or two Webservices? A : No, Directly its not possible to create EO using multiple tables.    Entity objects will always have one to one relationship with a database object or web service. Q.What is Control Hints in Entity Object configuration? A: Control hints are associated with the current view or entity attribute. All view objects inherit the hint values at run time. Control hints for data controls and bindings, including: Labels, Date & currency formatting. Q.What are View

ADF High Availability for clustered environment

In order for an ADF application to support High Availability in clustered environment with server fail over. The below steps must be followed in developing an ADF application. 1. All Manage Beans must implement Serializable. 2. UI component bindings must be declared in a bean with shorter scope (backing bean scope or request scope). 3. If it needs to be declared in Manage Bean with PageFlowScope (Not recommended) , please ensure you declare the binding as transient. 4. Any objects that are declared as an attribute in Manage Bean must be Serialized. 5.ADF component bindings can not support the Serializable.To make them support HA use the following code for component binding,getters and setters in pageFlowScope bean .   ex. Normal ADF code for binding,getters and setters will be as follows    Private RichSelectOneChoice partySelect       public void setPartySelect(RichSelectOneChoice partySelect) {             this.partySelect = partySelect;            }      public RichSe

Getting the components tree and setting values at runtime

In some scenario we need to get the chields and set some value or refresh the chield components. Following code is one example for that. 1.There is one RichPanelGroupLayout with following childerns       a)RichPanelFormLayout and it has two RichInputText  RichPanelGroupLayout pGrpLayout = this. cbPopPalGrpLayout ;             List pGrpLayoutList = pGrpLayout.getChildren();                         for(int i = 0 ; i < pGrpLayoutList.size() ; i++){                 if(i > 0){                     RichPanelFormLayout pfl = (RichPanelFormLayout)pGrpLayoutList.get(i);                     List pflList = pfl.getChildren();                     for(int j = 0 ; j < pflList.size();j++){                         if(j > 0){                             RichInputText rit = (RichInputText)pflList.get(j);                             rit.setValue(null);                             rit.setSubmittedValue(null);                         }