Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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
 
Grow your own food... or this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic