wood burning stoves 2.0*
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 Android Security Essentials Live Lessons 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: 9291
    
  17

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
 
Don't get me started about those stupid light bulbs.
 
subject: optiontransferselect tag problem
 
Similar Threads
want to set string in a text box
optiontransferselect example
How to limit selections with s:optiontransferselect & struts 2.1
EL List traversing
s:optiontransferselect odd rendering on submit to action