A frequent question on OTN, which I often see answered with new rows created on the ADF BC view object level instead the ADF binding layer, is about how to...
A frequent question on OTN, which I often see answered with new rows created on the ADF BC view object level instead the ADF binding layer, is about how to create a new row for a table and append it as the last row in the table. The following code below shows how to do this properly using the binding layer only. Note that while it adds the row as the last row of the table, it doesn't do this as the last row of all possible rows that haven't yet been queried from the database....
A frequent question on OTN, which I often see answered with new rows created on the ADF BC view object level instead the ADF binding layer, is about how to create a new row for a table and append it...
Often developers need to filter a LOV query with information obtainedfrom an ADF Faces form or other where. The sample below shows how to define a launch popup...
Often developers need to filter a LOV query with information obtainedfrom an ADF Faces form or other where. The sample below shows how to define a launch popup listener configured on the launchPopupListener property of the af:inputListOfValues componentto filter a list of values. <af:inputListOfValues id="departmentIdId" value="#{bindings.DepartmentId.inputValue}" model="#{bindings.DepartmentId.listOfValuesModel}" ...
Often developers need to filter a LOV query with information obtainedfrom an ADF Faces form or other where. The sample below shows how to define a launch popup listener configured on...
In a blog entry from 2010, Oracle's Jobinesh Purushothamanwrites about exceptions that are getting raised after developers iterate thecollection of a RichTable...
In a blog entry from 2010, Oracle's Jobinesh Purushothamanwrites about exceptions that are getting raised after developers iterate thecollection of a RichTable instance using calls to setRowKey(key). http://jobinesh.blogspot.co.uk/2010/02/common-mistake-while-iterating-through.html The reason for the exception is that the selected row stateis change on the table without synchronization to happen with the ADF bindinglayer. The failure of synchronizing the table selected...
In a blog entry from 2010, Oracle's Jobinesh Purushothamanwrites about exceptions that are getting raised after developers iterate thecollection of a RichTable instance using calls...
Recently there was an increasing interest on OTN in best practices for invoking methods exposed on the ADF Business Components client interface. There exist two...
Recently there was an increasing interest on OTN in best practices for invoking methods exposed on the ADF Business Components client interface. There exist two options to access methods exposed on ADF Business Components application modules and view objects from a managed bean through ADF. Call findDataControl(String) on the BindingContext and access the application module to invoke a method exposed on the Application Module or View Object client interface. Create a method...
Recently there was an increasing interest on OTN in best practices for invoking methods exposed on the ADF Business Components client interface. There exist two options to access methods exposed on...
To create an ADF bound select many choice component, drag a collection from the Data Controls panel to a JSF page. In the opened context menu, choose Multiple...
To create an ADF bound select many choice component, drag a collection from the Data Controls panel to a JSF page. In the opened context menu, choose Multiple Selection | ADF Select Many Choice. This generates the page source code similar to this: <af:selectManyChoice value="#{bindings.allDepartments.inputValue}" label="#{bindings.allDepartments.label}" id="smc1"> <f:selectItems value="#{bindings.allDepartments.items}" id="si1"/></af:selectManyChoice> Note that the...
To create an ADF bound select many choice component, drag a collection from the Data Controls panel to a JSF page. In the opened context menu, choose Multiple Selection | ADF Select Many Choice. This...
ADF Faces page templates mayhave their own PageDef file defined to access the ADF binding layer or have ADFbound components added to the template. ADF Faces...
ADF Faces page templates mayhave their own PageDef file defined to access the ADF binding layer or have ADFbound components added to the template. ADF Faces pages that use thetemplate will reference the template's PageDef file in the Executable section of their own PageDef file. In this sample, thetemplate binding reference in the the template consumer page PageDef file is ptb1. The code below invokes a method binding in the template's PageDef file from a command button on...
ADF Faces page templates mayhave their own PageDef file defined to access the ADF binding layer or have ADFbound components added to the template. ADF Faces pages that use thetemplate will...
A question on OTN was how to display the current row numberand the number of totally available rows in a formatted output string. In theexample used below, the...
A question on OTN was how to display the current row numberand the number of totally available rows in a formatted output string. In theexample used below, the format is row no. [<row index>] of max rows [<total numbers of rows>] For this example, I used an af:outputText component todisplay the information on the page. The value of the af:outputText component is calculated from expression language (EL)accessing the ADF binding layer as shown below. Note that for better...
A question on OTN was how to display the current row numberand the number of totally available rows in a formatted output string. In theexample used below, the format is row no. [<row index>] of max...
ADF uses two different types of EL to reference the bindinglayer in af:tree,af:treeTableand af:tablecomponents. For example, if a table is read-only, using...
ADF uses two different types of EL to reference the bindinglayer in af:tree,af:treeTableand af:tablecomponents. For example, if a table is read-only, using af:outputText to render the tablecolumn values, the cell values are referenced as #{row.attributeName}. If the table is editable, the EL is #{row.bindings.attributeName.inputValue}. Inthe case of #{row.attributeName}, the value object is of type String. In thecase of #{row.bindings.attributeName.inputValue}, the...
ADF uses two different types of EL to reference the bindinglayer in af:tree,af:treeTableand af:tablecomponents. For example, if a table is read-only, using af:outputText to render the tablecolumn...
To get the database connect information of an ADF BC model in ADF, expose the following code in a public method on the ApplicationModule Implclass public...
To get the database connect information of an ADF BC model in ADF, expose the following code in a public method on the ApplicationModule Implclass public String getDatabaseInformation(){ DBTransaction dbTransaction = (DBTransaction) this.getTransaction(); PreparedStatement prepStatement = dbTransaction.createPreparedStatement("select * from dual", 0); try { String dbSchema = prepStatement.getConnection().getMetaData().getUserName(); ...
To get the database connect information of an ADF BC model in ADF, expose the following code in a public method on the ApplicationModule Implclass public String getDatabaseInformation(){ ...