[ 
https://issues.apache.org/jira/browse/WW-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dave Newton updated WW-4042:
----------------------------

    Description: 
When a map's key contains hyphen '-' (eg. uuid), no data will be populate to 
the map in the action bean.

In jsp page there is a "wordsMap", it's key is a entity's id generated by 
hibernate uuid2:


    {{<s:textfield name="wordsMap['%{id}']" value="%{words}"/>}}

In action bean:

{code}
    private Map<String, String> wordsMap = new HashMap<String, String>();
    getter...
    setter...
{code}

The id property in entity pojo:

{code}
    @Id
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid", strategy = "uuid2")
    private String id;
{code}


  was:
When a map's key contains hyphen '-' (eg. uuid), no data will be populate to 
the map in the action bean.

In jsp page there is a "wordsMap", it's key is a entity's id generated by 
hibernate uuid2:
    <s:textfield name="wordsMap['%{id}']" value="%{words}"/>

In action bean:
    private Map<String, String> wordsMap = new HashMap<String, String>();
    getter...
    setter...

The id property in entity pojo:
    @Id
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid", strategy = "uuid2")
    private String id;

    
> Can't populate map when map's key contains hyphen
> -------------------------------------------------
>
>                 Key: WW-4042
>                 URL: https://issues.apache.org/jira/browse/WW-4042
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.7
>         Environment: Windows XP sp3
> JDK 1.6.0_33-b03
> Tomcat 7.0.29
> Spring 3.1.3
> Hibernate 4.1.7.Final
>            Reporter: Li Yujun
>              Labels: features
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> When a map's key contains hyphen '-' (eg. uuid), no data will be populate to 
> the map in the action bean.
> In jsp page there is a "wordsMap", it's key is a entity's id generated by 
> hibernate uuid2:
>     {{<s:textfield name="wordsMap['%{id}']" value="%{words}"/>}}
> In action bean:
> {code}
>     private Map<String, String> wordsMap = new HashMap<String, String>();
>     getter...
>     setter...
> {code}
> The id property in entity pojo:
> {code}
>     @Id
>     @GeneratedValue(generator="system-uuid")
>     @GenericGenerator(name="system-uuid", strategy = "uuid2")
>     private String id;
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to