[ http://issues.apache.org/jira/browse/BEANUTILS-43?page=all ]

Henri Yandell updated BEANUTILS-43:
-----------------------------------

      Bugzilla Id:   (was: 31852)
    Fix Version/s: 1.8.0

> [beanutils] Mapped property inside a mapped property is not populated on 
> submit
> -------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-43
>                 URL: http://issues.apache.org/jira/browse/BEANUTILS-43
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: Firepica
>             Fix For: 1.8.0
>
>
> Hi, everyone.
> Suppose, I have a Map in my form, called "person": 
> private Map person;
> That Map has (besides other entries), a entry called "addresses", which is in
> turn a Map again. This "addresses" Map has several addresses of the person. 
> One
> of those addresses has key "home" and String value of home address.
> I want to render a text input field for the "home" address - I use EL syntax, 
> no
> brackets (it renders element correctly):
> <nested:text property="person.addresses.home"/>
> In html this element is _being rendered correctly_, including correctly
> displayed value of home address, taken from the "addresses" Map.
> However, if I submit this form with changed value of address, it's not being
> populated.
> I wrote my own implementation of "addresses" Map to see what's happening, and 
> I
> saw that no put method is called at all (only get() while rendering the 
> element).
> So then I also made custom implementation of "person" Map and saw there, that
> while submitting, it calls get("addresses") (which returns "addresses" Map) 
> and
> that's all. 
> So apparently, BeanUtils sees, that it retrieved a Map and stops processing, 
> not
> generating any exceptions BTW.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to