--- xushaoxun <[EMAIL PROTECTED]> wrote:
> I am using struts2, and I've been thinking for this
> questing for days. [s:checkbox] seems won't work. 
> Because it only renders boolean value.

Try using the fieldValue attribute of <s:checkbox.../>

For example, if I use:

<s:checkbox name="user.id" 
            fieldValue="%{user.id}"/>

it renders as:

<input type="checkbox" 
       name="user.id" 
       value="42" 
       checked="checked" 
       id="confirmTest_user_id"/>
<input type="hidden" 
       name="__checkbox_user.id" 
       value="42"/>

d.



 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to