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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:46:30+00:00 2026-05-27T00:46:30+00:00

For <f:selectItem> there is no rendered attribute. How can I hide a particular <f:selectItem>

  • 0

For <f:selectItem> there is no rendered attribute. How can I hide a particular <f:selectItem> under <h:selectOneRadio>?

<h:selectOneRadio id="radio1" styleClass="selectOneRadio" value="#{}" rendered="#{}">
    <f:selectItem itemValue="ALL" itemLabel="#{ONE}" />
    <f:selectItem itemValue="PRIVATE" itemLabel="#{TWO}" />
    <f:selectItem itemValue="GROUP" itemLabel="#{THREE}" />
</h:selectOneRadio>

In above code I want to hide the second item.

  • 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-27T00:46:31+00:00Added an answer on May 27, 2026 at 12:46 am

    The <f:selectItem> is a tag handler (which evaluated during view build time), not a JSF component (which is evaluated during view render time). You can only show/hide it with another tag handler, such as JSTL <c:if>.

    <h:selectOneRadio value="#{bean.selectedItem}">
        <f:selectItem itemValue="ALL" itemLabel="#{ONE}" />
        <c:if test="#{!bean.showPrivate}">
            <f:selectItem itemValue="PRIVATE" itemLabel="#{TWO}" />
        </c:if>
        <f:selectItem itemValue="GROUP" itemLabel="#{THREE}" />
    </h:selectOneRadio>
    

    Only when #{bean} is been prepared during view render time by an iterating JSF component such as <h:dataTable> or <ui:repeat> then the above won’t work and you really have to do it in the backing bean code instead.

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

Sidebar

Related Questions

Look the following code <h:selectManyCheckbox layout=pageDirection styleClass=pressReviewTable> <f:selectItems value=#{theme.articles} var=prArt itemLabel=#{prArt.prLabel} itemValue=#{prArt.id} itemLabelEscaped=false/> </h:selectManyCheckbox>
Is there a way to dynamically create a selectItem list? I dont really want
I have the following h:selectOneRadio : <h:selectOneRadio id=#{prefix}_rating value=#{examinationPanel.tempResult} > <f:selectItems value=#{examinationPanel.options}></f:selectItems> </h:selectOneRadio> And
<h:dataTable value=#{bean.listOfRows} var=eachRow id=theDataTable> <h:column> <p:outputPanel rendered=#{eachRow.visible}> <h:selectManyCheckbox value=#{xxxx} label=#{xxxx}> <f:selectItems value=#{checkBoxItems} var=eachItem itemLabel=#{eachItem.label}
I have the following peace of code: <h:selectOneMenu id=countrycode styleClass=Width300 value=#{customer.countrycode} valueChangeListener=#{customer.countrycodechange} onchange=submit() immediate=true
I have a selectOneRadio menu with some selectItem's in them. I want to show
Is there a way to access to an id of selectItem JSF from JavaScript
is there ways to have a selecteditem and detect when it changes. what is
I tried Dim theme = rblTheme.Items(rblTheme.SelectedIndex).Value getting first value selected Dim theme = rblTheme.SelectedItem.Value
What is the difference between the selectitem and selectitems tags in jsf?

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.