struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From FreshAir <lichen...@yahoo.com.cn>
Subject struts2 doubleselect tag doesn't support multiselect?
Date Tue, 14 Jul 2009 12:28:55 GMT

Hi,
I am currently using struts2.1.6 tag on my web pages. Yet when it comes to
<s:doubleselect/> tag, I find it seemingly impossible to make its double
list multiple-selected. The following is my tag on the form page:
<s:doubleselect labelposition="left" labelSeparator=":"
requiredposition="right" doubleMultiple="true"
			 	list="codeCategoryMap.keySet()" listKey="codeNumber"
listValue="codeMean" name="userProduct.proType" label="product type" 
			 	doubleName="userProduct.proGenre" doubleList="codeCategoryMap[top]"
doubleListKey="itemNumber" doubleListValue="cateName"
doubleValue="selectedProGenres">
	 </s:doubleselect> 

The attribute "doubleMultiple" is set to be true so that when I choose a
type from its select list, I can multi-select corresponding items belonging
to the type in double list. My problem is that when I want to edit this VO,
I can't make the double list automatically multi-selected by loading it from
DB. I even transfer "userProduct.proGenre" from a string(like: "001, 005,
003") to a List<String>, as you can see in "doubleValue="selectedProGenres""
in which "selectedProGenres" is that List<String>.However all these efforts
appear failed. Is there any way that this doubleselect can automatically get
multi-selected? 
Any suggestion would be highly appreciated. Thank you in advance!

-- 
View this message in context: http://www.nabble.com/struts2-doubleselect-tag-doesn%27t-support-multiselect--tp24478477p24478477.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message