You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/09/30 14:19:00 UTC

[jira] [Closed] (WW-5239) regression btw struts 2.5.30 and 6.0.30 / submit s:checkbox unchecked -> NPE

     [ https://issues.apache.org/jira/browse/WW-5239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart closed WW-5239.
-----------------------------
    Resolution: Not A Problem

You must add {{submitUnchecked="true"}} if you want to submit _unchecked_ value as normally browser won't send value of unchecked checkboxes. It's related to changes in WW-4865 and WW-5168

> regression btw struts 2.5.30 and 6.0.30 / submit s:checkbox unchecked -> NPE
> ----------------------------------------------------------------------------
>
>                 Key: WW-5239
>                 URL: https://issues.apache.org/jira/browse/WW-5239
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 6.0.3
>            Reporter: Yannick Bové
>            Priority: Major
>             Fix For: 6.1.0
>
>
> Submission form with <s:checkbox> introduce a NullPointerException when you will use *Boolean* when checkbox is nos checked
> _same définition work fine in 2.5.30_
> {code:java}
> <s:checkbox name="cb1" id="cb1" fieldValue="true" value="%{cb1}"/>{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)