Forum Stats

  • 3,770,906 Users
  • 2,253,180 Discussions
  • 7,875,653 Comments

Discussions

How to get selected row from a non-bind ADF table

User501417-Oracle
User501417-Oracle Member Posts: 399
edited Mar 21, 2012 1:26PM in JDeveloper and ADF
Hi,

I have an ADF table that is based on a collectionModel built programmatically. The collectionModel is this:

model = new SortableModel(new ArrayList<ArrayList>());

Hence, it is not a binding table. My question is how to get the selectedRows from a non-bind table.

I am used to building binding ADF table and I know we can get it from voiterator.getCurrentRow, since the selectionListener is set to the binding....collectionModel.makeCurrent


<af:table value="#{bindings.ItasLookupTypesVO1.collectionModel}"
.....
selectedRowKeys="#{bindings.ItasLookupTypesVO1.collectionModel.selectedRow}"
selectionListener="#{bindings.ItasLookupTypesVO1.collectionModel.makeCurrent}"
</af:table>

I am thinking maybe I need to write my own selectionListener, but need more advice/ideas of what's the codes in the customer selection Listener to get it from my SortableModel.

Please help.

Thanks
-Mina

Answers

This discussion has been closed.