java - How to use autocomplete of richfaces with table layout? -


I rich: autocomplete of'm using I < P> Search all the user details such as name, address, age, and amp; Photo.

This is my code:

  & lt; rich: autocomplete mode = "client" showButton = "true" layout = "table" autocompleteMethod = "# {patient looking .autocomplete}" fetchValue = "# {patient.patientId}" id = "txtPatientSearch" var = "patient" & Gt; & Lt; Rich: Columns & gt; & Lt; H: Graphic Image Value = "/ Resources / Picture / Default Junction" /> & Lt; / Rich: Columns & gt; & Lt; Rich: Columns & gt; & Lt; H: output text value = "# {patient.fname}" /> & Lt; / Rich: Columns & gt; & Lt; Rich: Columns & gt; & Lt; H: output text value = "# {patient.lname}" /> & Lt; / Rich: Columns & gt; & Lt; Rich: Columns & gt; & Lt; H: output text value = "# {patient.gender}" /> & Lt; / Rich: Columns & gt; & Lt; Rich: Columns & gt; & Lt; H: output text value = "# {patient.mrn}" /> & Lt; / Rich: Columns & gt; & Lt; / Rich: Autocomplete & gt;   

and Auto complete method from Bean: Public list & lt; SearchPatient & gt; Autocomplete (string search) {ArrayList & lt; SearchPatient & gt; Results = New Arreelist & lt; SearchPatient & gt; (); Iterator & LT; SearchPatient & gt; Iterator = Patient DAO.searchPatientByAll (search, 1, this.SessionToken) .iterator (); While (iterator.hasNext ()) {SearchPatient elem = (SearchPatient) iterator.next ()); Result.add (ELEM); } Return results; }

But when I run my app, it gives exceptions:

  javax.el.PropertyNotFoundException: Property 'full-fledged' on xtremum.health is not found Web.bean.PatientSearchBean   

the autoComplete method in the bean anyone can tell me how to use the autoComplete table structure ... please you Help needed ....

Hello my problem went resolved I make changes to your code Have been And changes

  1. Changing the Ajax client mode,
  2. Automatic completely Law & amp; AutocompleteList are added to both tags

    here XHTML

      & lt; rich: autocomplete mode = "ajax" showButton = "true" layout = "table" AutocompleteMethod = "# {patientSearch.searchPatientByAll}" autocompleteList = "# {patientSearch.searchPatient}" fetchValue = "# {patient.patientId}" id = "TxtPatientSearch" var = "patient" & gt; & Lt; Rich: Columns & gt; & Lt; H: Graphic Image Value = "/ Resources / Picture / Default Junction" /> & Lt; / Rich: Columns & gt; & Lt; Rich: Columns & gt; & Lt; H: output text value = "# {patient.fname}" /> & Lt; / Rich: Columns & gt; & Lt; Rich: Columns & gt; & Lt; H: output text value = "# {patient.lname}" /> & Lt; / Rich: Columns & gt; & Lt; Rich: Columns & gt; & Lt; H: output text value = "# {patient.gender}" /> & Lt; / Rich: Columns & gt; & Lt; Rich: Columns & gt; & Lt; H: output text value = "# {patient.mrn}" /> & Lt; / Rich: Columns & gt; & Lt; / Rich: Autocomplete & gt;   

    looks like a bean method

      Private @ Gator @ Setter list & lt; SearchPatient & gt; SearchPatient; Public listing & lt; SearchPatient & gt; SearchPatientByAll (string search) {this.searchPatient = patientDAO.searchPatientByAll (search, 1, this.sessionToken); Turn it back. Searchtipant; }    

Comments