You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Christopher Maloof <C_...@mail.jci.tju.edu> on 2009/06/15 20:11:36 UTC

checkboxlist initial selection

I'm confused by the documentation for checkboxlist 
(http://struts.apache.org/2.1.6/docs/checkboxlist.html).  I want to set 
three things for each checkbox in the list:
1) The label seen by the user
2) The "value" attribute to be posted to the form
3) Whether it's initially checked

By analogy with other form elements, I expected that listKey would be 
2), listValue would be 3), and... listLabel or something would be 1).  
Instead it seems like listValue is 1), while I can't find 3) at all.

Short version: Is there a way to initially select some of the checkboxes 
in a list?

Thanks,
Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org