Showing posts with label IteratorBinding. Show all posts
Showing posts with label IteratorBinding. Show all posts

Tuesday, September 28, 2010

ADF Iterator's RangeSize Property

RangeSize property does not control the number of rows displayed in a table based on the collection. In fact, the rich table in ADF 11g actually will display as many rows as can fit into the available space physically allocated to the table component, so all the range size controls is the number of AJAX transactions that are required to populate the table as the user scrolls up and down. You can set it to -1 if you want to get all records at once.

Friday, August 6, 2010

Programmatically Setting Filter for ADF Table

You can set the criteria programmatically to filter data in ADF table by:

DCBindingContainer bc =
(DCBindingContainer)context.getApplication().evaluateExpressionGet(facesContext,
"#{bindings}",
DCBindingContainer.class);
if (bc != null){
DCIteratorBinding ib = (DCIteratorBinding)bc.getIterBindings().get(p_binding);
if (ib != null)
ViewObject vo = ib.getViewObject();
if (vo != null)
vo.setWhereClause('your clause');
}