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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:13:42+00:00 2026-05-19T12:13:42+00:00

I have a SelectOneMenu driven by a List, each of which contains an object

  • 0

I have a SelectOneMenu driven by a List, each of which contains an object value and a string label, along with a converter. All fairly standard. I initially got the Validation Error: Value is not valid error because of a typo in the equals method, but a quick search on how to fix that brings up another question:

Am I right in my understanding that, in this scenario, what happens is:

  1. An item is selected in the menu.
  2. This sends a string value to the server.
  3. The converter is used to convert the string value to an object.
  4. JSF checks that the object exists in the list of items.
  5. The setter method is called passing the object.

If so, then can I disable step 4? My converter will throw a ConverterException if the value is not valid, so for me this second list traversal is completely unnecessary.

Cheers,

Barney

  • 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-19T12:13:43+00:00Added an answer on May 19, 2026 at 12:13 pm

    This is by design. It’s one of the standard website attack preventions. You can’t turn it off.

    Just put the bean in view scope (so that it won’t be refetched on every request, for the case that), or look for a less secure MVC framework if it bothers you.

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

Sidebar

Related Questions

I have a select: <h:selectOneMenu id=treeNode label=#{msgs.treeNode} value=#{treeNode}> <f:selectItems value=#{treeItems} /> </h:selectOneMenu> which uses
Hi I have the follonwing selectOneMenu <h:selectOneMenu value=#{modelsController.selected.idBrands}> <f:selectItems value={brandsController.itemsAvailableSelectOne} /> </h:selectOneMenu> <br/> which
I have this SelectOneMenu: <h:selectOneMenu value=#{orderController.requestVO.requestSituation}> <f:converter converterId=ComboConverter/> <f:selectItems value=#{orderController.requestSituation} var=requestSituation itemLabel=#{requestSituation.description} itemValue=#{requestSituation} />
I have a <h:selectOneMenu> that renders the value of the cardStatus from my object
I have a h:selectonemenu that is populated by a list. When a specific value
I have the following JSF 2 code: <p:selectOneMenu id=dropdown value=#{data.selection} required=true converter=selectOneMenuConverter> <f:selectItem itemLabel=Select
I have a standard JSF h:form which contains an h:SelectOneMenu control. As long as
I have the following dropdown in a Facelets page: <h:selectOneMenu value=#{contactBean.selectedContact} converter=#{contactConverter}> <f:selectItems value=#{contactsHolder.contacts}
I am using JSF 2.0. I have a h:selectOneMenu on my page which contains
In a JSF project I have a SelectOneMenu populated by a list of string

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.