Announcement Announcement Module
Collapse
No announcement yet.
how to turn a bean into text, for the DataBinder? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to turn a bean into text, for the DataBinder?

    DataBinder is great for turning text (like the example below) into a nested object graph:

    Code:
    id=6789
    nestedBean[0].systemId=FOO
    nestedBean[1].systemId=BAR
    This would create a top level bean (with property 'id') containing a List of two nested beans.

    Is there a utility somewhere to take an arbitrary bean and turn it into a property list as above?

    i.e. with a signature like

    Code:
    Map<String,String> reduceBeanToNameValuePairs(Object bean)
Working...
X