permaculture playing cards
The moose likes Struts and the fly likes optiontransferselect tag problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "optiontransferselect tag problem" Watch "optiontransferselect tag problem" New topic
Author

optiontransferselect tag problem

venkataramana raju
Greenhorn

Joined: Sep 11, 2005
Posts: 28
Hi all,

i am very new to Struts 2, i am using "optiontransferselect" tag.

1) How can i validate doubleList(right side selected list should not be empty) in javascript ?
2) How can i get doubleList in action class?

Code which is in my jsp is :-
<sptiontransferselect id="listOfObjects" name="listOfObjects" list="myMap" doubleId="selectedObjects" doubleName="selectedObjects" doubleList="" allowUpDownOnLeft="false" allowSelectAll="false" allowUpDownOnRight="false" />

Thanks, in advance...
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9374
    
  19

1) How can i validate doubleList(right side selected list should not be empty) in javascript ?

Since you know the ID of the second <select> box generated by the optiontransferselect tag, so you can use the options property in javascript and if the options property is empty, it means that no option has been transferred by the user. I've not tried it but it should work
2) How can i get doubleList in action class?

I'm unsure what you mean here.

See the optiontransferselect tag to get more details about the tag...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
wood burning stoves
 
subject: optiontransferselect tag problem
 
jQuery in Action, 3rd edition