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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:46:39+00:00 2026-06-18T12:46:39+00:00

I am using Primefaces 3.4.2 Autocomplete. In ManagedBean when I select a row as

  • 0

I am using Primefaces 3.4.2 Autocomplete.

In ManagedBean when I select a row as I type characters in autocomplete, I am not able to get the value in method handleSelect(SelectEvent event) {

What could be the reason for this? Ideally I would like to fill or populate other columns in jsf page when I select a row from autocomplete values.

JSF code for autocomplete

<p:autoComplete value="#{empMB.selectedEmployee}"
                            id="basicPojo" minQueryLength="3" 
                            completeMethod="#{myMB.complete}" var="p"
                            itemLabel="#{p.empName}" 
                             converter="#{employeeNameConverter}"
                            forceSelection="true" >                           
                            <p:ajax event="itemSelect" 
                            listener="#{myMB.handleSelect}" /> 

ManagedBean method

public void handleSelect(SelectEvent event) {
String value = (String) event.getObject();
System.out.println("selected "+value);
  • 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-18T12:46:40+00:00Added an answer on June 18, 2026 at 12:46 pm

    The reason is you didn’t provide itemValue attribute in p:autoComplete component.

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

Sidebar

Related Questions

I am using primefaces autocomplete componant for multiple columns. I am able to display
When I was still using PrimeFaces v2.2.1, I was able to type unicode input
I'm using JSF templates and Primefaces. Javascript code does not seem to be working
I am using PrimeFaces 3.4.1 to plot time chart (Date on x-axis, int value
I am using primefaces for not so long and Ive found that I cant
I am unable to successfully get the p:autocomplete widget to work... Using the autocomplete
I'm using primefaces 2.2.1 and I want set f:validatorLength to one row in datatable
I'm using the PrimeFaces p:autoComplete widget in a search form of my project. The
I'm using Primefaces 3.3.1 and have a <p:selectOneMenu> where I'm selecting a new value.
I am using PrimeFaces, which in turn uses JQuery UI for not only the

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.