Monday, December 1, 2014

ADF : getSelectedRowKeys only returning one row

Remove the attribute selectedRowKeys off the af:table

selectedRowKeys="#{bindings.AccountList.collectionModel.selectedRow}"


 <af:table value="#{bindings.AccountList.collectionModel}" var="row"
                  rowBandingInterval="1" contentDelivery="immediate"
                  filterVisible="true" varStatus="vs"
                  selectedRowKeys="#{bindings.AccountList.collectionModel.selectedRow}"
                  selectionListener="#{bindings.AccountList.collectionModel.makeCurrent}"
                  rowSelection="multiple" id="t1" columnSelection="single"
                  queryListener="#{bindings.AccountListQuery.processQuery}"
                  ...

becomes
<af:table value="#{bindings.AccountList.collectionModel}" var="row"
                  rowBandingInterval="1" contentDelivery="immediate"
                  filterVisible="true" varStatus="vs"
                  selectionListener="#{bindings.AccountList.collectionModel.makeCurrent}"
                  rowSelection="multiple" id="t1" columnSelection="single"
                  queryListener="#{bindings.AccountListQuery.processQuery}"
                  ...