• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

optiontransferselect tag problem

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :-
<s:optiontransferselect id="listOfObjects" name="listOfObjects" list="myMap" doubleId="selectedObjects" doubleName="selectedObjects" doubleList="" allowUpDownOnLeft="false" allowSelectAll="false" allowUpDownOnRight="false" />

Thanks, in advance...
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic