Hi everyone,

 

I am now trying do build a form with a list of checkboxes where you can
select one or more.  Very basic.  However, I want to make sure that at least
one item is checked (selected) before the form is submitted.  This is doable
in Javascript if all the checkboxes have the same HTML name.  It looks like
Tapestry creates the checkboxes with different names (e.g. selectedScan,
selectedScan$0, selectedScan$1.).  For example, the HTML generated is:

 

<tr>

   <td align="center"><input type="checkbox" name="selectedScan"/></td>

   <td>lrtest02</td>

   <td>DEVELOPER</td>

</tr>

<tr> 

   <td align="center"><input type="checkbox" name="selectedScan$0"/></td>

   <td>lrtest03</td>

   <td>DEVELOPER</td>

</tr>

 

Does anyone have any thoughts on this issue or how they have implemented
this?  Having the checkboxes with the same name allows one to add a lot more
client functionality (e.g. ability to let the user select/deselect the
entire list).

 

Thanks,

Ben Wong 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reply via email to