title: How to use autocomplete of richfaces with table layout?
body: <p>I'm using <code>rich:autocomplete</code> for user search. </p>
  
  <p>Search result contains all the details of user like name, address, age &amp; photo.</p>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;rich:autocomplete mode="client" showButton="true" 
          layout="table" autocompleteMethod="#{patientSearch.autocomplete}" 
          fetchValue="#{patient.patientId}" id="txtPatientSearch" var="patient"&gt;
      &lt;rich:column&gt;
          &lt;h:graphicImage value="/resources/images/default.png" /&gt;
      &lt;/rich:column&gt;
      &lt;rich:column&gt;
          &lt;h:outputText value="#{patient.fname}" /&gt;
      &lt;/rich:column&gt;
      &lt;rich:column&gt;
          &lt;h:outputText value="#{patient.lname}" /&gt;
      &lt;/rich:column&gt;
      &lt;rich:column&gt;
          &lt;h:outputText value="#{patient.gender}" /&gt;
      &lt;/rich:column&gt;
      &lt;rich:column&gt;
          &lt;h:outputText value="#{patient.mrn}" /&gt;
      &lt;/rich:column&gt;
  &lt;/rich:autocomplete&gt;
  </code></pre>
  
  <p>and the autocomplete method from the bean:</p>
  
  <pre><code>public List&lt;SearchPatient&gt; autocomplete(String search) {
      ArrayList&lt;SearchPatient&gt; result = new ArrayList&lt;SearchPatient&gt;();
      Iterator&lt;SearchPatient&gt; iterator 
          = patientDAO.searchPatientByAll(search, 1, this.sessionToken).iterator();
      while (iterator.hasNext()) {
          SearchPatient elem = ((SearchPatient) iterator.next());
          result.add(elem);
      }
      return result;
  }
  </code></pre>
  
  <p>but when I deploy my app it gives exception:</p>
  
  <blockquote>
    <p>javax.el.PropertyNotFoundException: Property 'autocomplete' not found on type xtremum.health.web.bean.PatientSearchBean </p>
  </blockquote>
  
  <p>this bean contains autocomplete method. How to use autocomplete for table structure?</p>