• 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

simple alignment problem with select one radio

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am very new to JSF. I am getting some simple alignment problems of radio buttons...
Here is the code
<h:selectOneRadio id="action" value="#{bean.action}">
<f:selectItem itemValue="A" itemLabel= "AA"/>
<f:selectItem itemValue="B" itemLabel="BB"/>
<f:selectItem itemValue="C" itemLabel="CC" />
<f:selectItem itemValue="D" itemLabel="DD" />
</h:selectOneRadio>

When I run this code, I got all the radio buttons side by side. I like to get each radio button in one row(like in <tr><td>...</td></tr>). I tried writing <tr><td> in between radio buttons but when I view source while running app, all those <tr><td>'s in between selectOneRadio shows up before and then radio's are displayed. Please help me out.

Thanks In Advance..
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's up to the JSF implementation to support this. MyFaces allows you to specify your layout. I don't what implementation you are using, but you should look into that.
 
rakesh verma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for responding. We are using JavaServer Faces RI. I used that pageDirection option and it is working. I do have one more question.

I have different textboxes for each of those options and I need to display only one of them according to the one selected. And each of those textboxes should be placed just after each option. Making it display visible or not, I can use div tag, but how can I place those textboxed right after each option.

Thanks.
 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look at this Thread

Thanks,
 
rakesh verma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you
 
reply
    Bookmark Topic Watch Topic
  • New Topic