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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:17:25+00:00 2026-05-12T10:17:25+00:00

I am having an issue in creating rich:combobox i did as follows <rich:comboBox selectFirstOnUpdate=false

  • 0

I am having an issue in creating rich:combobox
i did as follows

<rich:comboBox selectFirstOnUpdate="false" defaultLabel="Enter some value">
    <f:selectItems value="#{userregister.selectItems}" />
</rich:comboBox>

and in the backing bean i created the selectItems as follows

 List<UISelectItem> selectItems;
 UISelectItem uisi = new UISelectItem();
 uisi.setItemLabel("label");
 uisi.setValue("value");
 selectItems.add(uisi);

But i am getting the exception javax.servlet.ServletException: Value of tag <selectItems> attribute is incorrect. Which the proper way to create a combobox with dynamic values ?

  • 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-12T10:17:25+00:00Added an answer on May 12, 2026 at 10:17 am

    The reason its not working is because you havent set itemValue on your select item. However Ive never used UISelectItem and instead used SelectItem like this:

    List<SelectItem> selectItems = new ArrayList();
    selectItems.add(new SelectItem('value', 
    'label'));
    

    which is the same as saying:

    List<SelectItem> selectItems = new ArrayList();
    SelectItem item = new SelectItem();
    item.setItemLabel("label");
    item.setItemValue("value");
    

    The value for the selectItem is defined as itemValue not value btw so by correcting that your code will probably work without any modifications other than that. Any reason your using UISelectItem and not just SelectItem btw?

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

Sidebar

Related Questions

I am having an issue with creating a splice for a weighted index. I
I am creating a personnel recruitment website and am having an issue with adding
I'm having the following issue with my hibernate 3.6.10 project: org.springframework.beans.factory.BeanCreationException: Error creating bean
I am having an issue with creating and adding sales/quote_address objects to the multishipping
I am creating a modal window using jquery. I am having an issue with
I'm having an issue creating my Oracle DB with schemaexport function of NHibernate. For
I'm having an issue with an creating application shortcut on the desktop from a
I am currently creating a one page website, however I am having an issue,
A client is having an issue running java2ws on some of their code, which
I'm having an issue creating dates in python, as the dates I create are

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.