Drag and drop method from the availabled Data Control tab in source tab to create ADF Read-only Table and make the below given changes
1) single row selection in af:table : For the Single Row selection , rowSelection=”single” should be defined
<af:table value=”#{bindings.OrderStatusVO1.collectionModel}”
var=”row” rows=”#{bindings.OrderStatusVO1.rangeSize}”
emptyText=”#{bindings.OrderStatusVO1.viewable ? ‘No data to display.’ : ‘Access Denied.’}”
fetchSize=”#{bindings.OrderStatusVO1.rangeSize}”
rowBandingInterval=”0″ id=”t2″
rowSelection=”single”
selectedRowKeys=”#{bindings.OrderStatusVO1.collectionModel.selectedRow}”
selectionListener=”#{bindings.OrderStatusVO1.collectionModel.makeCurrent}”>
2) mutiple row selection in af:table : For the multiple row selection, rowSelection=”multiple” and remove the property selectedRowKeys from the table to make multiple row selection
work .
<af:table value=”#{bindings.OrderStatusVO1.collectionModel}”
var=”row” rows=”#{bindings.OrderStatusVO1.rangeSize}”
emptyText=”#{bindings.OrderStatusVO1.viewable ? ‘No data to display.’ : ‘Access Denied.’}”
fetchSize=”#{bindings.OrderStatusVO1.rangeSize}”
rowBandingInterval=”0″ id=”t2″
rowSelection=”multiple”
selectionListener=”#{bindings.OrderStatusVO1.collectionModel.makeCurrent}”>
3)change the rangeSize value : To make the change in the rangeSize value, either set the value for rangeSize instead of the expression value in the property rows
or make the change in the View Object where RangeSize is defined