• 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

STruts 2 radio

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I'm using struts 2 tag to display my 5 difrrent group of radio buttons. Now as each list has values of diffrent lenghts the outcome is very irregular. Is there a way to apply style to the struts radio buttons so that they appear unifom. Here is the code to make it more simple what I'm trying to achieve.


With this code the radio buttons of each group are not aligned. What I want is, the first radio buttons of all groups should align vertically. Second radio buttons of all groups should align vertically and so on. I have attached a screenshot of the output I'm getting right now. Any advice how to align them. Thanks
radioScreenshot.JPG
[Thumbnail for radioScreenshot.JPG]
Screenshot of the output
 
Ranch Hand
Posts: 492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried with html table with border=0 ?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the rendered output: that's what's provided by the default Struts 2 theme.

If you need output to appear in some other way, you can try using CSS (perhaps setting a width), or you'll need to modify a theme.
 
reply
    Bookmark Topic Watch Topic
  • New Topic