Object rowKey = resultTable.getAttributes().get("scrollTopRowKey");
RowKeySet rks = resultTable.getSelectedRowKeys();
rks.clear();
rks.add(rowKey);
RowKeySet rks = resultTable.getSelectedRowKeys();
rks.clear();
rks.add(rowKey);
The Incident Archive: A blog to store my knowledge on the errors that I fix on a daily basis
Hi Could you please elaborate on the example.
ReplyDeletei have a similar requirement where i have to make the first row as default when the table is populated by the query panel.
i do not know where to place this code.
Please help
I usually do this on the queryListener in the af:query. Have you tried a displayRow="first" on you table it may be simpler depending on your requirement.
Deletecan i use:
ReplyDeleteObject rowKey = resultTable.getScrollTopRowKey();
instead of:
Object rowKey = resultTable.getAttributes().get("scrollTopRowKey");?
I want the first row in my manageBean
ReplyDelete