ADF Academy's new tutorial available online: Developing Application with ADF Mobile
Friday, September 6, 2013
Wednesday, February 27, 2013
ADF: No Vertical Scrollbars for Table/Tree
Below is the way to eliminate vertical scrollbars from ADF Table/Tree component:
autoHeightRows
This property suggests that, the height of the component can grow to a maximum of 'autoHeightRows' after which a vertical scrollbar is displayed.
Problem: But even after specifying the value in autoHeightRows or assigning it the value of model data size (e.g. list size), vertical scrollbars are visible after certain limit.
Resolution: Assign the same value to "fetchSize" property as specified for "autoHeightRows".
Tuesday, February 26, 2013
ADF: javax.faces.model.NoRowAvailableException
Scenarios:
This error is generally thrown in case where underlying tree model is changed & component changes (i.e. expanding or collapsing of nodes) are saved in state.
- Approach 1
treeTable.getDisclosedRowKeys().clear();
Note: But it will work only in case where tree is already being rendered & underlining model is changed as a part of partial submission.- Approach 2
org.apache.myfaces.trinidad.model.TreeModel uses ComponentChangesMapForSession API to support back button behavior or to save the state of TreeTable/tree. We can manually clear the changes stored in session map for respective pages.
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().
remove("org.apache.myfaces.trinidadinternal.ComponentChangesMapForSession/oracle/webcenter/portalapp/pages/testPages/TestTree.jspx");
Wednesday, January 2, 2013
ADF/RIDC: Multiple sort in RIDC
Following is the way to specify multiple sort while using "GET_SEARCH_RESULTS" service through RIDC java APIs
----
----
DataBinder requestDataBinder = idcClient.createBinder();
requestDataBinder.putLocal("IdcService", "GET_SEARCH_RESULTS");
requestDataBinder.putLocal("QueryText", doc.getSearchQuery());
requestDataBinder.putLocal("SearchEngineName", "DATABASE");
requestDataBinder.putLocal("SortSpec",
"ORDER BY metadataField01 asc, metadataField02 asc, metadataField03 asc");
-----
-----
Tuesday, January 1, 2013
ADF: Getting URL parameter values inside page region
Getting URL parameter values in page region or inside taskflow can be achieved in following ways:
- Through groovy expression
${facesContext.externalContext.requestParameterMap['<parameter-name>']}
- In Managed bean
String paramValue =
(String) FacesContext.getCurrentInstance().getExternalContext()
.getRequestParameterMap().get("param-name");
Subscribe to:
Posts (Atom)