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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:54:27+00:00 2026-06-06T14:54:27+00:00

I am using primefaces autocomplete componant for multiple columns. I am able to display

  • 0

I am using primefaces autocomplete componant for multiple columns.

I am able to display multiple columns result, but I want a header name for each column.
http://www.primefaces.org/showcase-labs/ui/autoCompletePojo.jsf
As you can see in this demo there are two columns in auto suggestions as name and image,

I want to provide header name to name and image , means it will looks like in this way

Player_Name    Picture    (Header names for columns)

  Messi         (its image) 

I tried to give header names using in this way but didn’t worked

<p:autoComplete value="#{autoCompleteBean.selectedPlayer2}" id="customPojo" completeMethod="#{autoCompleteBean.completePlayer}"  
                        var="p" itemLabel="#{p.name}" itemValue="#{p}" converter="player" forceSelection="true">  
                <p:column>  
                  <f:facet name="header">
            <h:outputText value="Player Image" />
            </f:facet> 

                   <p:graphicImage value="/images/barca/#{p.photo}" width="40" height="50"/>  
                </p:column>  

                <p:column>  
            <f:facet name="header">
            <h:outputText value="Player Name" />
            </f:facet>
            <h:outputText value="#{#{p.name}}" />

                </p:column>  
            </p:autoComplete> 

and also I want to display 5 columns as a suggestion like as in this
demo there are only 2 columns as a suggestion but I have 5 columns as
a suggestions so it displays all columns but it takes by default
horizontal slider . but i don’t want a slider over there , atleast 5
columns should be displayed without any slider.

How can I achieve it?

  • 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-06T14:54:28+00:00Added an answer on June 6, 2026 at 2:54 pm

    Its not possible to set headers in autocomplete component

    Issue 3567: Column header for autocomplete columns

    About the scroll you should look with your firebug on what id got your auto complete opened dialog and apply overflow-x: hidden; to it

    in the showcase for example it should be something like

     #form:customPojo_panel table{
         overflow-x: hidden;
     }
    

    might need to add some other css stuff like display: inline-block or assign min-width

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

Sidebar

Related Questions

When I was still using PrimeFaces v2.2.1, I was able to type unicode input
I am using PrimeFaces p:messages but I think this question applies equally to h:messages
Using Nunit, I want to be able to write a test fixture that will
I am using PrimeFaces 2.1 to show a dialog like this: <p:dialog header=Test modal=true
I'm using PrimeFaces 3.0 and JSF 2.0. In my webapp, I display a modal
I'm using primefaces and their growl control in order to display validation error messages
I'm using the PrimeFaces p:autoComplete widget in a search form of my project. The
Using PrimeFaces, I want to update/refresh a pages central layout unit based on user
I'm using Primefaces 3.3.1 and have question. I have p:commandButton inside p:column of p:dataTable.
I am using PrimeFaces 3.0.M4. I want to update the contents of PrimeFaces layout

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.