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


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

        

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to