selectBooleanCheckbox help needed

Hi all,I have to use Checkbox for each row of datatable with some unique value. I am able to generate the checkboxes based on the datatable, but could assing value based for each rows. Please provide any help in usage of check boxes for such case. Thanks in
[299 byte] By [mruthyunjayava] at [2007-10-2 10:21:24]
# 1
Please show us your jsp code.
yuki.yoshidaa at 2007-7-13 1:52:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

My code in JSp page

<h:dataTable value="#{manageBean.users}" var="usersData" border="0" cellspacing="0" cellpadding="0" headerClass="HEADING" rowClasses="evenrow,oddrow" width="450">

<h:column>

<f:facet name="header"/>

<h:selectBooleanCheckbox id ="user" value="1"/>

<h:outputText id="firstName" value="#{usersData.firstName}"/>

</h:column>

</h:dataTable>

With the above code i am able to generate the check boxes for the number of rows, but using java script i want to knwo which check box is selected. please need some info about it.

thanks and regards

Mruthyunjaya

mruthyunjayava at 2007-7-13 1:52:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
I don't know why you want to use java script.However, you can refer the value in the bean as follows:<h:selectBooleanCheckbox id ="user" value="#{usersData.selected}"/>
yuki.yoshidaa at 2007-7-13 1:52:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
perhaps this helps you: http://www.jenia.org/TestDataTools/
Semmerlea at 2007-7-13 1:52:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...