I've gotten something similar to work in the past, so it is possible:

                                                  <t:dataTable
                                                        
                                                          
rowOnClick="colorizeRow('#{blah.blah.uiDataClientId}',
'#{blah.blah.selectedRowInputClientId}', this.id, '#{rowIndex}');"
                                                          rowIndexVar="rowIndex"
                                                          >


On Thu, Aug 13, 2009 at 8:19 AM, mitroiasi<[email protected]> wrote:
>
>
> Hi,
>
> I use a t:dataTable in a JSF web application. I set rowIndexVar="rowIndex"
> and it works when I access the rowIndex in a column:
> <h:column>
>        <f:facet name="header">
>                <h:outputText value="Id" style="margin-left: 5px" />
>        </f:facet>
>        <h:outputText value="#{rowIndex + 1}" />
> </h:column>
>
> But when I try to use this in a javascript method nothing happens:
> rowOnMouseOver="rowColor('#{rowIndex}')"
>
> Do I have errors in my code or this is not possible?
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-with-dataTable-tp24953809p24953809.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to