[ 
http://www.stripesframework.org/jira/browse/STS-686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter resolved STS-686.
----------------------------

    Resolution: Fixed

Fixed for 1.5.2 (r1164) and 1.6 (r1165).  Parameter names returned by 
FormTag.getRegisteredFields() are now stripped before use.

> 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
>             Fix For: Release 1.5.2, Release 1.6
>
>
> 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

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to