Thursday, April 14, 2011

Some Important Property Attribute @ADF

1) Rendered: this looks an important property attribute. we can use it to make components visible/hidden based on EL expression in it.
For Eg.: If our search result have only one result, then we can remove the Next and Previous buttons. We need to add those button inside a panel container and change its renderes property to

#{bindings.MyIterator.estimatedRowCount >1}

2) FacetName: If we have two facets named 'Found' and 'NotFound' inside switcher, then we can set the facetname to following

#{bindings.TechniciansIterator.estimatedRowCount > 0 ? 'Found' : 'NotFound'}

No comments:

Post a Comment