Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How to make 1st list item in <s:optiontransferselect /> tag auto selected in Struts 2 ?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I am using <s:optiontransferselect /> tag of struts2 in my application , i want to make an item of left side list auto selected. Is there any property in s:optiontransferselect tag which will allow me to do that.

Thanks in Advance,
 
Ranch Hand
Posts: 38
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please check this and try 'left' properties:

http://struts.apache.org/release/2.0.x/docs/optiontransferselect.html
 
saurabh nema
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi vivek,

thank you so much for your reply . I have checked that link you provided but still not able to get solution of my problem. There was no property that allow me to make a list item auto selected . See the problem is that when i click on button (Which assign left list item to right list) without selecting any left item , it produce a problem so i decide to make an item of left side list auto selected.

Waiting for your valuable response.
 
Vivek SharmaJi
Ranch Hand
Posts: 38
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok.

have you tried following property

leftTitle="Selected"

or

rightTitle="Selected"
 
saurabh nema
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried the same but for this tag there is no such property in strtus2.. Anyways i have achived my goal in some different way.

Thank you so much for your precise time you given to me..


Vivek SharmaJi wrote:Ok.

have you tried following property

leftTitle="Selected"

or

rightTitle="Selected"

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic