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 460945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:55:29+00:00 2026-05-12T22:55:29+00:00

i have the following in my page. <h:selectOneRadio layout=pageDirection > <s:selectItems value=#{usageList} var=entry label=#{labels[entry.label]}

  • 0

i have the following in my page.

<h:selectOneRadio layout="pageDirection" >
     <s:selectItems value="#{usageList}" var="entry" 
      label="#{labels[entry.label]}" itemValue="entry" />
</h:selectOneRadio>

With this code I get a radio Button and after it the label of the same.

[ ] User

[ ] Administrator

But I want to do the following.

User [ ]

Administrator [ ]

Is it possible to do that with that using selectItems and selectOneRadio, or should I create the entries one by one.

  • 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-05-12T22:55:30+00:00Added an answer on May 12, 2026 at 10:55 pm

    If it is not a language matter (for which the dir="rtl" as mentioned in McDowell’s (currently deleted?) post would not have been appropriate as it has more side-effects), then you can also just use CSS for this. It’s good to know that the <h:selectOneRadio> renders a table with buttons and labels in the same cell. This way you could just let the button float to the right and also align the cell’s text (the label) to right.

    Basic CSS example:

    .radioright td {
        text-align: right;
    }
    .radioright td input {
        float: right;
    }
    

    Apply styleClass="radioright" on the <h:selectOneRadio> and you’ll be fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following JSF 2.1 page <h:selectOneRadio value=#{userBean.newUser}> <f:selectItem itemValue=0 itemLabel=new User />
I have the following gsp page: <g:def var=incidentMngmntId value=${incidentMngmntInstance?.id}/> <g:link controller=ticketMngmnt action=list params=[incidentMngmntId :
i have h:selectOneRadio as follows: <div id=container class=container> <h:selectOneRadio layout=pageDirection id=sel_radio value=#{mBean.selectedRadio}> <f:selectItem id=option1
I have the following page that a user can go to by where this
I have the following page: <div style=display: inline> <input type=button id=txt value=Add TextBox style=
I have the following in my page. $(document).ready(function() { function setTheTimeout(){ var t=setTimeout(alertMsg(),3000); }
I have following loop in my jsp page: <c:forEach var=i begin=1 end=${ toLvvt }
I have the following page: <html> <head> <title>Test</title> <script type=text/javascript> function BuildTree() { var
I have the following page: mysite.com/news/index.php?tag=tag&name=name&id=id I want to rewrite this so that it
I have the following page layout in my application: <Grid x:Name=ContentPanel Grid.Row=1> <ScrollViewer x:Name=ScrollViewer1

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.