struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4886) Checkbox is taking value as true on deselecting
Date Mon, 30 Oct 2017 14:12:01 GMT

    [ https://issues.apache.org/jira/browse/WW-4886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16225014#comment-16225014
] 

Lukasz Lenart commented on WW-4886:
-----------------------------------

What's the initial value of {{customer.quote.application.example1}}? It looks like it's set
to {{true}}.

> 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
>              Labels: patch
>
> 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 
> {code:html}
> <s:checkbox id="customer.quote.application.example1" name="customer.quote.application.example1"
 theme="simple"/>
> {code}
> internally the code will be  generated like..
> {code:html}
> <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">
> {code}
> Can you please suggest any option for this?



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

Mime
View raw message