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

  • Home
  • SEARCH
  • 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 1065993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T19:56:58+00:00 2026-05-16T19:56:58+00:00

I have used Tomahawk <t:selectOneRadio> in my jsf page. I have reserved one boolean

  • 0

I have used Tomahawk <t:selectOneRadio> in my jsf page. I have reserved one boolean value for each radio button in my back bean, but I have a problem with linking the component to the backing bean. How must I link the component to the backing bean?

Is my data model in backing bean wrong?

This is my code:

<t:radio index="0" for="select"></t:radio>
<t:selectOneRadio id="select" layout="spread">
<f:selectItem itemLabel="Every" itemValue="Every" />
<h:inputText id="days" /> days 
<br />
<t:radio index="1" for="select"></t:radio>
<f:selectItem itemLabel="Every Weekday"
itemValue="Every Weekday" />
</t:selectOneRadio>
  • 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-16T19:56:59+00:00Added an answer on May 16, 2026 at 7:56 pm

    Use the value attribute.

    <t:selectOneRadio value="#{bean.selectedItem}">
    

    That said, the component is not used the correct way in your code. Only the selectitems should go in the component and the t:radio index should start with 0. Here’s a rewrite:

    <t:selectOneRadio id="frequency" value="#{bean.frequency}" layout="spread">
        <f:selectItem itemLabel="Every" itemValue="Every" />
        <f:selectItem itemLabel="Every weekday" itemValue="Every weekday" />
    </t:selectOneRadio>
    
    <t:radio for="frequency" index="0" /><h:inputText value="#{bean.days}" /> days
    <br />
    <t:radio for="frequency" index="1" />
    

    In the bean you need the following:

    private String frequency;
    private Integer days;
    // Add/generate getters and setters.
    

    Depending on the selection, the selected itemValue will be set as frequency (which can thus be either "Every" or "Every weekday") and the entered days will be set as days.

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

Sidebar

Related Questions

Have used google maps dozens of times but cannot get around this one. Doing
We have used Custom List View inside that one Text View and two Edit
I have used multi open accordion for my web page. I have downloaded the
I have made a jsf 1.1 portlet in weblogic 10.3, but in one scenario
I have used PHP a lot , and now i want to give back
I have used a query string parameter to redirect from Page 1 to Page
I have used the HTML5 embed code from this page: http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html <iframe class=youtube-player type=text/html
I have used the silverlight control in CRM 2011.It also published on form but
We have used Shibboleth to authenticate users. It works great. The issue is that
I have used some jquery components in my web site, Suddenly i'm getting an

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.