Hi Friends, I have a table to display with multiple rows. I am using selectBooleanCheckbox to display a check box as a first column of each row. My requirement is I need to capture the details of selected row say e.g row ID. It is displaying a check box for each row, but I am not sure how capture the selected rows in backing bean. Any help would be appreciated. <t:dataTable id="list" value="#{ActionBean.cmplList}" var="srchlist" width="100%"> <t:column> <h:selectBooleanCheckbox binding="#{ActionBean.checkBox}" value="#{srchlist.rowId}"/> </t:column> <t:column> <f:facet name="header"> <h:outputText value="Row#"/> </f:facet> <h:outputText value="#{srchlist.rowId}"/> </t:column> <t:column> <f:facet name="header"> <h:outputText value="Project Name"/> </f:facet> <h:outputText value="#{srchlist.ProjNm}"/> </t:column> <t:column> <f:facet name="header"> <h:outputText value="County/> </f:facet> <h:outputText value="#{County[srchlist.cntyId]}"/> </t:column> </t:dataTable>
I think I am guessing very wild here but Can you use try following
And in Your Handler class
So whenever someone click that Check box you will get request in your handler. Problem with is that page will execute each time someone click that check box. I hope this help you