You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Heath Borders <he...@gmail.com> on 2004/12/20 19:44:26 UTC
Re: dataTable and rowIndex
This is possible with the MyFaces extended Datatable component
On Mon, 20 Dec 2004 19:45:42 +0100, Borja MartÃn <bo...@dagi3d.net> wrote:
> hi,
> is it possible to get the index number for each row while rendering the
> dataTable in the jsp page?
> I have the following code in the jsp page:
> <h:dataTable
> id="images"
> value="#{images.list}"
> var="image">
> <h:column>
> <h:outputText value="#{images.list.rowIndex" />
> </h:column>
> </h:dataTable>
>
> it will display in each row a 0 for the rowIndex value
>
> thanks in advance
>
>
--
-Heath Borders-Wing
hborders@mail.win.org