pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Brown (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-764) BeanAdapter should support Map objects
Date Thu, 23 Jun 2011 12:26:47 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13053816#comment-13053816
] 

Greg Brown commented on PIVOT-764:
----------------------------------

> Yes, I mentioned that on the mailinglist.

Yes, I know. ;-)

Maybe "adapter"? Or just "map".


> BeanAdapter should support Map objects
> --------------------------------------
>
>                 Key: PIVOT-764
>                 URL: https://issues.apache.org/jira/browse/PIVOT-764
>             Project: Pivot
>          Issue Type: Improvement
>          Components: core-beans
>            Reporter: Edvin Syse
>             Fix For: 2.0.1
>
>         Attachments: JSON-java_util_Map-support.patch
>
>
> BeanAdapter currently does not support the ability to wrap Maps, because it will fail
to retrieve the correct getterMethod and setterMethod. My current usecase is that I have a
TableView with tableData that consists of objects with path "value-of-type-map.subvalue".
The following code should return John Doe in my opinion:
>         HashMap root = new HashMap();
>         HashMap child = new HashMap();
>         child.put("name", "John Doe");
>         root.put("child", child);
>         System.out.println(JSON.get(root, "child.name"));
> I will provide a patch.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message