You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Renzo Tomaselli <re...@tecnotp.it> on 2007/08/30 22:32:25 UTC

[Trinidad] how to get tr:table rowKeys

Hi, I used to manage tr:table through my own DataModel, which defines 
and returns rowKeys.
However, for simpler cases usually just a row array is enough, where row 
objects offer all field getters. Thus no special model is needed.
If I want to preselect some rows by means of the selectedRowKeys 
attribute, how do I get rowKeys from array elements/positions ?
Thanks,

-- Renzo


Re: [Trinidad] how to get tr:table rowKeys

Posted by venkata guddanti <ve...@gmail.com>.
The index of the element in the array is the rowKey. Trinidad wraps the
array into SortableModel.

--Venkata

On 8/30/07, Renzo Tomaselli <re...@tecnotp.it> wrote:
>
> Hi, I used to manage tr:table through my own DataModel, which defines
> and returns rowKeys.
> However, for simpler cases usually just a row array is enough, where row
> objects offer all field getters. Thus no special model is needed.
> If I want to preselect some rows by means of the selectedRowKeys
> attribute, how do I get rowKeys from array elements/positions ?
> Thanks,
>
> -- Renzo
>
>