Hi,
I have two multiselect listboxes in my page. In List1 the data will be retrieved from DB and listed.I will have buttons to move the values from List1 to List2 and viceversa.
After selecting the needed values,I can rearrange them in List2 using some buttons. I have coded this moving and reordering using javascript.
What happens is while submitting the page I want the values from list2 which are rearranged. But im getting the order in which I moved from list1 to list2.
I am using html:selectfor both lists
List1
------
<html:select name="CustForm" property="custName" multiple="true" size="10">
<html
ptionsCollection property="CustomerNames" value="custName" label="id"/>
</html:select>
I am having a customer form which has a arraylist CustomerNames. This arraylist has customer bean which has proeprties custName and id. The custForm also has a
String custName.
List2
------
<html:select name="CustForm" property="selectedCustName" multiple="true" size="10">
<html
ption value=""/>
</html:select>
The custForm also has a String[] selectedCustNames from where I get the selected values in list2
Please let me know what am I doing wrong here.