Sure thing. When this feature was implemented, I remember making sure we
didn't break backward compatibility. Strange that you are seeing this
"break" during your upgrade. Perhaps Lukasz can chime in.
Pull Request for SubmitUnchecked
https://github.com/apache/struts/pull/169
------ Original Message ------
From "Britta Katzenbach" <katzenb...@liwa.de>
To "Struts Users Mailing List" <user@struts.apache.org>
Date 11/9/2022 7:10:54 AM
Subject Re: From ??? Re: Checkbox tag new attribute submitUnchecked
Hi Burton,
Thanks for the quick answer and the description! I was hoping for a
solution to set the default value via the configuration, but it is ok.
We prefer to set the attribute in all our checkboxes in this case,
because otherwise we would need to maintain the template.
It would be nice if there is a short remark in the migration guide,
that the attribute is added and its default value. Otherwise it is kind
of hard to notice that the application is behaving differently.
Kind regards,
Britta
Britta Katzenbach
_____________________________________________________
e-Mail: katzenb...@liwa.de
Dr. Lippke & Dr. Wagner GmbH
Nassauische Str. 25
10717 Berlin
Tel./Fax: +49 30 2147309-0 / 2
Geschäftsführer: Florian Schlittgen
Registergericht: Amtsgericht Berlin HRB 25607
Am 09.11.2022 um 12:25 schrieb Burton Rhodes <burtonrho...@gmail.com>:
You would just need to override the checkbox.ftl template. Below is a
line from the Struts template/simple/checkbox.ftl file. You'll notice
the line below defaults to false if "submitUnchecked" is not present.
<#if parameters.submitUnchecked!false>
Change to:
<#if parameters.submitUnchecked!true>
To override a template file, you just need to copy it to your code
base in the same folder (depending on which template you are using:
simple, xhtml, css_html, etc)) More info can be found here:
https://struts.staged.apache.org/getting-started/themes
Thanks,
Burton
------ Original Message ------
From "Britta Katzenbach" <katzenb...@liwa.de>
To user@struts.apache.org
Date 11/9/2022 2:40:19 AM
Subject Checkbox tag new attribute submitUnchecked
Hi,
We are migrating from struts 2.5 to 6.0.3. You have implemented the
new tag attribute submitUnchecked in the checkbox. The default value
is false. Is there any way to set the attribute default value to
true?
Best regards,
Britta
Britta Katzenbach
_____________________________________________________
e-Mail: katzenb...@liwa.de
Dr. Lippke & Dr. Wagner GmbH
Nassauische Str. 25
10717 Berlin
Tel./Fax: +49 30 2147309-0 / 2
Geschäftsführer: Florian Schlittgen
Registergericht: Amtsgericht Berlin HRB 25607