This content has been marked as final.
Show 2 replies
-
1. Re: <rich:dataTable> Row selection
ilya_shaikovsky Mar 22, 2007 8:17 AM (in response to danjepp)1)
<rich:dataTable value="#{capitalsBean.capitals}" var="cap" binding="#{capitalsBean.table}"> <a4j:support event="onRowClick" actionListener="#{capitalsBean.rowSelected}"/>
and... import org.richfaces.component.UIDataTable; ... private UIDataTable table; ... public void rowSelected(ActionEvent event) { System.out.println(getTable().getRowIndex()); } [code/] works fine for me.
-
2. Re: <rich:dataTable> Row selection
ilya_shaikovsky Mar 22, 2007 8:19 AM (in response to danjepp)this simple code just gets the row that clicked and outs its index.