[
http://www.stripesframework.org/jira/browse/STS-686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter closed STS-686.
--------------------------
> 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.
-
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