I need to add a property with a list of values that will not only hold the value itself but a key (that the user will see in the drop down component) and a value (to be used in the backing bean).
Is there any way of doing it ( <List> tag ??? ) using customModel.xml ??
I need something similar. In the properties page the drop-down can stay as it is, but when storing, instead of storing just the display value, i want to store the map of key and value. lets say id and name. the drop down should look like. <param value="1">one</param> <param value="2">two</param>
when added to the list. the display string should look like "1 - one" or something similar.
the main point is both of the key and value should be stored. how do i achieve this ??? any ideas help!!!
No easy way to do it (i.e. without writing any code). I'd suggest you write a component generator to render your property editor appropriately. Store values as a string property.
Definitely will write some code. Generator part I believe is only for displaying what has been stored. I am not sure how the data is going to be stored a child association with two different attributes? if you could direct me to some code related to this that would be great.