Nivedya created WW-4886:
---------------------------

             Summary: Checkbox is taking value as true on deselecting
                 Key: WW-4886
                 URL: https://issues.apache.org/jira/browse/WW-4886
             Project: Struts 2
          Issue Type: Bug
          Components: Other
    Affects Versions: 2.5.12
         Environment: JDK 1.8, Jboss-eap-7.0.0
            Reporter: Nivedya


I am migrating struts 2.3 to 2.5.12 after migration checkbox validation is not 
working , It is taking the value as true if we are not checked the box as well.
Actual code 

<s:checkbox id="customer.quote.application.example1" 
name="customer.quote.application.example1"  theme="simple"/>

internally the code will be  generated like..

<input type="checkbox" name="customer.quote.application.example1" value="true" 
checked="checked" id="customer.quote.application.example1">
<input type="hidden" id="__checkbox_customer.quote.application.example1" 
name="__checkbox_customer.quote.application.example1" value="true">

Can you please suggest any option for this?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to