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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:14:40+00:00 2026-06-17T09:14:40+00:00

I use primefaces autocomplete and search properly. When I click Save ,Show this error

  • 0

I use primefaces autocomplete and search properly. When I click Save ,Show this error message.

/entryPages/usDistributorDetails/Create.xhtml @95,71 itemLabel="#{territory.territoryName}": Property 'territoryName' not found on type java.lang.String

My xhtml code:

 <p:autoComplete id="territoryId11"
     value="#{usDistributorDetailsController.selected.territoryId}"
     completeMethod="#{usDistributorDetailsController.completeTerritory}"
     var="territory" itemLabel="#{territory.territoryName}"
     itemValue="#{territory.territoryId}"
     size="37"
     style="width: 264px" >

</p:autoComplete>

My Java Code:

public List<UsTerritory> completeTerritory(String query11) {

    List<UsTerritory> results = new ArrayList<UsTerritory>();
    List<UsTerritory> territoryListA = getJpaTerritoryController().findUsTerritoryEntities();

    for (UsTerritory abc : territoryListA) {

         if (abc.getTerritoryName().startsWith(query11)) {
            results.add(abc);
        }

    }

    return results;
}
  • 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-17T09:14:40+00:00Added an answer on June 17, 2026 at 9:14 am

    You might have to use a converter when working with POJOs. Take a look at: Primfaces Autocomplete Pojo

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

Sidebar

Related Questions

I use Spring Security 3 and JSF2 Primefaces. Then, I create a index.xhtml for
I'm trying to use primefaces <p:dialog> combined with <p:commandButton> . In my .xhtml page
I want to use Primefaces fileupload, this is my jsf page: <h:form id=uploadForm enctype=multipart/form>
I am new to primefaces and I want to use autocomplete tag of primeface.So
I'm trying to use the primefaces dataExporter to export some data and I have
I use Spring 3.2 and Spring-security 3.1 along with jsf + primefaces and hibernate4
I am using PrimeFaces <p:dataTable> with pagination. I use <h:selectBooleancheckbox> with a Map property
First of all, I use Java EE, Hibernate with EntityManager and PrimeFaces. I have
Use Case Show a photo uploaded by the user in a square box with
I want to use the primefaces fileupload control in my jboss 7 web application.

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.