Indexed properties checkbox comes back checked on a validation error
--------------------------------------------------------------------
Key: STS-815
URL: http://www.stripesframework.org/jira/browse/STS-815
Project: Stripes
Issue Type: Bug
Components: Validation
Affects Versions: Release 1.5.6
Reporter: Matthew Kilpatrick
Attachments: Checkbox-test.zip
This may be related to STS-781
When using indexed properties with two required fields and a non-required
checkbox, if the fields were previously saved but now the user decides to
remove one of the required fields, upon validation failure the checkbox is
returned as checked when is should remain unchecked. This only occurs in the
case where two objects are used: one that will contain a list of all populated
rows to work with, and one that contains the rows of previously saved data. An
example input field using the two objects looks like this:
<stripes:checkbox name="testList[${loop.index}].bool"
checked="${actionBean.dbTestList[loop.index].bool}"/>
All other fields return as empty when displayed on validation error, but
checkboxes remain checked.
In the attached test case uncheck Bool and clear out Bar and hit Save. The
checkbox will get rechecked on validation failure but it should remain
unchecked.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development