Hi,

Using struts tag for a checkbox. I disable my checkbox using disabled property 
so that user cannot change it. When the form is submitted, the value of the 
checkbox passed to the action comes out as false, even if the checkbox was 
selected (true).

The weird thing is if I remove the disabled property it works as expected.

My code:
<s:checkbox name="myFlag" label="myLabel"                             
value="%{model.isMyFlag()}" required="true" labelposition="left"                
            disabled="true" tooltip="myToolTip" />

This checkbox is selected (true), when the form is submitted the value passed 
to the action is not selected (false).

Thanks.



      

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

Reply via email to