Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:42:46+00:00 2026-06-15T02:42:46+00:00

The selectOneRadio element in JSF is translated to a table, where the radio button

  • 0

The selectOneRadio element in JSF is translated to a table, where the radio button and its label are put within the same <td> in a table.

<!-- JSF Element -->
<h:selectOneRadio id="types" label="Type"
    value="#{bean.selectedType}"
    layout="pageDirection">
    <f:selectItems value="#{bean.types}"/>
</h:selectOneRadio>

<!-- Generated HTML -->
<table id="j_id_i:types">
    <tbody>
         <tr>
             <td>
                 <input id="j_id_i:types:0" type="radio" value="VALUE1"
                     name="j_id_i:types"/>
                 <label for="j_id_i:types:0"> Value #1</label>
             </td>
         </tr>
         <tr>...</tr>
         ...
    </tbody>
</table>

Before I was using Bootstrap, the elements within the <td> would appear side by side, but now look under each other.

Elements under each other

The processed CSS for the element is the following, as given by Firebug.

table {
    border-collapse: collapse;
    border-spacing: 0;
}
body {
    color: #333333;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 14px;
    line-height: 20px;
}
html {
    font-size: 100%;
}

I have no clue what may be producing such behaviour. It’s not a concern of width, as this is the single element within the <div>, and without bootstrap it is rendering side by side.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:42:48+00:00Added an answer on June 15, 2026 at 2:42 am

    That’s because the <label> has due to the Bootstrap CSS become a HTML block element which starts naturally at a new line.

    You need to make it a HTML inline element again. So, you need to override the Bootstrap CSS accordingly. Perhaps you want to apply this for labels in table cells only. E.g.

    td label {
        display: inline;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a scenario like the below.. <h:selectOneRadio id=someId value=#{myBean.type} required=true> <f:ajax event=valueChange execute=@form
I've got the following JSF form: <h:form> <ui:repeat value=#{list.categories} var=cat> <h:selectOneRadio id=sel1Rad value=#{list.choose} layout=pageDirection>
i have the following in my page. <h:selectOneRadio layout=pageDirection > <s:selectItems value=#{usageList} var=entry label=#{labels[entry.label]}
JSF 2.0, Primefaces 3.1.1 I have two p:selectOneRadio components: <p:selectOneRadio id=radio1 value=#{inningBean.lastDeliveryType}> <f:selectItem itemLabel=Wide
I have the following JSF 2.1 page <h:selectOneRadio value=#{userBean.newUser}> <f:selectItem itemValue=0 itemLabel=new User />
Usig this element <p:selectOneRadio id=selempaque value=#{mbcompletado.empaque}> <f:selectItem itemLabel=Si itemValue=true/> <f:selectItem itemLabel=No itemValue=false/> <p:ajax update=colEmp/>
How do you get which radio is selected within p:selectOneRadio using javascript/jquery ? Since
How to detect which radio button was clicked in h:selectOneRadio using javascript or maybe
In JSF 2.0 I have below <h:selectOneRadio value=#{StageGate.sketchesSG002006Decision} onclick=validateMyRadioButton() id=radio26> <f:selectItem itemValue=Accepted itemLabel=Accepted id=accepted/>
I have the following h:selectOneRadio : <h:selectOneRadio id=#{prefix}_rating value=#{examinationPanel.tempResult} > <f:selectItems value=#{examinationPanel.options}></f:selectItems> </h:selectOneRadio> And

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.