The selectedRowKeys attribute is bound to an RowKeySet instance. The
RowKeySet instance is attached to the collectionModel using
setCollectionModel method. To select all rows in the table you would do
something like this:
rowKeyset.clear();
tableInstance.setRowKey(null);
rowKeyset.invertAll();
Regards,
Venkata
On 9/18/07, Tobias Kilian <[EMAIL PROTECTED]> wrote:
>
> Hi NG!
>
> I want to have a preselection in my tr:table with
> rowSelection="multiple" . So I tried
> selectedRowKeys="#{tableInstance.selectedRowKeys}" and putting something
> in the array before the table gets rendered.
> But it seams as if the attribute selectedRowKeys is meant for reading
> out which items the user selected and not for putting a selection in.
> All I want is to have all entries selected when the table is first shown.
> How do I accomplish this?
>
> thanks,
> Tobias Kkilian
>
>
>
>