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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:43:40+00:00 2026-06-03T15:43:40+00:00

I am using rich faces select component. I want dynamic values when user manually

  • 0

I am using rich faces select component.
I want dynamic values when user manually type some thing in the select component.

<rich:select enableManualInput="true" defaultLabel="start typing for select" value="#{supplierSearchBean.userInput}">
                        <a4j:ajax event="keyup" execute="@this" listener="#{supplierSearchBean.userInputChange}"/>
                        <f:selectItems value="#{supplierSearchBean.selectOptions}" />
                        </rich:select> 

Java code as follows

public void userInputChange(ActionEvent  ae){
       Map map = ae.getComponent().getAttributes();
       System.out.println(map.toString());

   }


 public void setUserInput(String userInput) {
       System.out.println("userINput = " + userInput);
       this.userInput = userInput;
   }

Here i found 2 issues
1st: setUserINput always print empty string when user type value
2nd: listener method never get call.

any help ?

  • 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-06-03T15:43:41+00:00Added an answer on June 3, 2026 at 3:43 pm

    The problem is most probably that there is no selected value while the user types, and this component restricts the allowed values to the specified select items. A partial input is thus not valid and cannot be bound to your bean.

    I think you could get the expected behavior if you use a rich:autocomplete instead. However, if you want to restrict the allowed values, maybe you can keep your rich:select and listen for the selectitem event.

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

Sidebar

Related Questions

I am trying a simple thing in Seam using rich faces. i am displaying
I am using rich faces data table tag in my jsf: <r:dataTable id=dataTable var=user
I have the following scenario (using rich faces): ... <a4j:outputPanel id=foo> <h:commandButton disabled=#{not _user.selected}
I am using jsf reach faces in one application. I am using rich:modalPanel for
HI I would like to create vertical tabs using the rich faces tab controls.
I'm using a HTML Rich-Text Editor to help me create a template for dynamic
I am developing simple application using JSF with richfaces. I want to upload folder(select
I am using rich:suggestionbox . Select a suggestion from the suggestion box Then save
I'm using Richfaces JSF and I want to iterate over an Map<Object,Object> . I
I'm using RichFaces and I'm having problems with the fileUpload flash component + IE

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.