[
http://www.stripesframework.org/jira/browse/STS-784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter resolved STS-784.
----------------------------
Resolution: Not a Bug
What you describe is the correct behavior. The actual value of the checkbox
input depends on the form population strategy, thus it is not necessarily the
value you specify in the value= attribute. The value= attribute should be
considered a default value that will be used if the form population strategy
cannot determine the value any other way.
For the record, the default population strategy checks the request parameters
first, then the ActionBean property, then the value= attribute. The bean-first
strategy checks the ActionBean property first, then the request parameters,
then the value= attribute.
> <stripes:checkbox> ignores specified value when deciding whether the checkbox
> should be checked
> -----------------------------------------------------------------------------------------------
>
> Key: STS-784
> URL: http://www.stripesframework.org/jira/browse/STS-784
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.5.4
> Reporter: Giorgio Gallo
> Priority: Minor
>
> When both "name" and "value" are specified, <stripes:checkbox> seem to use
> the value obtained by looking up the "name" attribute in the pageContext
> instead of the specified "value".
> IMO it should be the case that
> <stripes:checkbox name="actionBean.property" value="A" checked="A">
> always outputs a checked checkbox, but it seems to do that only if
> ${actionBean.property == 'A'}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development