[
http://www.stripesframework.org/jira/browse/STS-878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Walsh updated STS-878:
-----------------------------
Attachment: CollFormatter.tar.gz
Should be a working test case, as requested.
> Can never format a Collection/Array using custom formatters with certain
> Stripes Tags
> -------------------------------------------------------------------------------------
>
> Key: STS-878
> URL: http://www.stripesframework.org/jira/browse/STS-878
> Project: Stripes
> Issue Type: Bug
> Components: Formatting, Tag Library
> Affects Versions: Release 1.5.6
> Reporter: Martin Walsh
> Labels: formatting, taglib
> Fix For: Release 1.5.8
>
> Attachments: CollFormatter.tar.gz
>
>
> Certain tags within the Stripes Taglib do not allow you to work with
> Collections or Arrays. All tags that use
> InputTagSupport.getSingleOverrideValue() to obtain the override value for the
> field get returned the first value in the Collection/Array which is then
> passed to the Formatting framework to format. This prevents users from
> displaying a formatted list of the values, instead always displaying the
> first value in the collection, even when a CollectionFormatter is present.
> What I think should happen is that the tags should use
> InputTagSupport.getOverrideValueOrValues() and pass the resulting Object off
> to the formatters. That way a CollectionFormatter could then be used to
> format the values accordingly, whether that be to return the first value in
> the Collection to maintain current behavior, or return a comma separated list
> of values so that data values are not lost. This also allows overriding to
> customise the output, which is currently not possible for Collections/Arrays.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development