• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

optiontransferselect tag problem

 
venkataramana raju
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic