I have a pojo that I’m using as a datasource for a form that contains a Map<String, String> as one of its attributes.
For example,
Person() {
String name;
int age;
Map<String, String> map;
}
My form maps correctly for name and age, both get displayed as text field, but so does map. I would like map to be an editable table, instead of a text field. To achieve that, I extended the DefaultFieldFactory. Now that I’m returning a table for the map field, how do i bind the key/value pairs so they display in the table and so they are all in sync with the form map attribute? When I click the Save button to commit(), I would like all changes in the Table to be committed as well. Any help would be appreciated.