The field-metadata tag doesn't produce metadata for fields whose names include 
index notation ("[2]")
-----------------------------------------------------------------------------------------------------

                 Key: STS-686
                 URL: http://www.stripesframework.org/jira/browse/STS-686
             Project: Stripes
          Issue Type: Bug
          Components: Tag Library
    Affects Versions: Release 1.5.1
         Environment: Linux (doubt it matters)
            Reporter: Mike McNally


For indexed bean properties, the metadata map is built such that the indexing 
notation (square brackets around a numeric index value) isn't there.  That is, 
the DefaultValidationMetadataProvider stashes the metadata in the cache with  a 
plain-looking property path.

When the field-metadata tag code goes about its business of providing metadata 
for all properties mentioned in a form, it doesn't strip out the indexing 
notation from form field names when looking for metadata.  Because of the way 
the map is built, it doesn't find the metadata.

A workaround is to include a hidden disabled dummy field in the form whose name 
is an indexed property field name minus the index.  This is made a little more 
difficult than it sounds because the <s:hidden> tag does not allow the 
"disabled" attribute to be provided.

This might not be "major", but it doesn't seem "minor" either. That's just me 
however.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to