Talking about datamodule-config.xml: the fields in a domain are represented by a HashMap with the attribute name as the key. And we know HashMap does not allow duplicate keys. So we cannot have 2 fields with the same name attribute.
The situation: I have a number of runtime column names in the listgrid, and I want to add field definitions in the config file for those columns at run time. There are no property names and accessor methods for those columns names. A single method gives the values of all those columns and hence I must give that method name (if method name is 'getValue', field name is 'value') as the field's name.
This I do programmatically by defining the FieldConfig(name, nodeName) and add this to the TypeConfig. But because of the HashMap representation, I am not achieving this as I like it.
<field name="value" node="@node1" type="string" />
<field name="value" node="@node2" type="string" />
</type>
the above code has no effect as it overwrites the first field entry.
Are there any ways to define multiple field definitions all of which calls the same method?
Jay
