---- "Rafa Pérez" <[EMAIL PROTECTED]> schrieb:
> Hi all,
>
> I am facing some problems with table selection if I reorder the table by
> clicking on one column. That moment on, the selected rows are not the
> expected. For example, if I have this table:
>
> letter | name
> ---------------------
> a | paco
> b | manolo
> c | lucas
>
> After reordering by name ascendent, if I select the third row, do not obtain
> letter='a', name='paco' but letter='c' , name='lucas'. Have any of you
> experienced this problem? I have been googling, but not found similar
> issues. Any hints?
>
> I am using Trinidad 1.0.3, MyFaces 1.1.5 and JBoss Seam 1.2.1.
>
> My table is defined as follows:
>
> <tr:table id="tablaResultados"
> value="#{beanDatos.listaResultados}"
> var="fila"
> rows="10"
> rowBandingInterval="1"
> columnBandingInterval="0"
> selectedRowKeys="#{beanDatos.estadoDeSeleccion}"
> binding="#{beanDatosBinding.tabla}"
>
> rowSelection="multiple" width="100%">
>
> <tr:column sortable="true" headerText="letter"
> sortProperty="letter"
> align="end">
> <tr:outputText value="#{
> fila.letter}" />
> </tr:column>
> <tr:column sortable="true" headerText="name"
> sortProperty="name"
> align="end">
> <tr:outputText value="#{
> fila.name}" />
> </tr:column>
> </tr:table>
>
> Thanks in advance,
It looks to me like at postback your list is no longer sorted.
So:
* on initial load of the list, {paco, manolo, lucas}
* user clicks a sort, so on the server the list is sorted and the
sorted list {lucas, manolo, paco} is used for rendering.
* user selects the third row (paco). On server, however, the
list is back to its default state: the third row is therefore
lucas.
Regards,
Simon