2008/11/22 nikunj <[EMAIL PROTECTED]>:
> But Struts2 doesn't support separate List data type for label and value.
> Example:
>
> <s:select name="qsymbolcode" list="ListBean1.comboLabelValue"
>
> listValue="value"
>
> listKey="key"></s:select>
>
> Data type of comboLabelValue is List, Which add object having key/value
> property.

But instead of using list you can use Map with key / value par, and
put some KeyObject as a key and then ValueObject as your value, in
such way you will have

<s:select name="myObject" list="myObjectMap"
listValue="somePropertyOfValueObject"
listKey="somePropertyOfKeyObject"></s:select>


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to