I have a bean containing a Map<String, String> and the get/set/add methods:
private Map<String, String> details = new TreeMap<String, String>();
public Map<String, String> getDetails()
{
return details;
}
public void setDetails(Map<String, String> details)
{
this.details = details;
}
public void addDetail(String key, String value)
{
details.put(key, value);
}
When I use betwixt to render the bean as XML the output looks fine:
<Details>
<entry>
<Key>...</Key>
<Value>...</Value>
</entry>
</Details>
The problem is that when the bean is reconstructed from the XML, the Map is
empty. I put a breakpoint in the addDetail() method and it isn't getting
hit, so this method isn't being called. Is this an error in the
documentation or is there something else I've missed?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]