title: How to pass a parameter in p:ajax when we used it with p:inputText?
body: <p>I need to pass a parameter in my p:ajax method . there is a <code>&lt;p:inputText&gt;</code> and when I finish typing my input Box have to update my p:ajax method. But i am not able to send the parameter in my method. </p>
  
  <p>My jsf page is :</p>
  
  <pre><code>&lt;h:outputText value="#{msg['elicense.contractorFormRenewal.personal.registrationNo']}"/&gt;
  &lt;p:inputText id="registrationNo" value="#{renewalContractorBean.registrationNo}"  required="false" label="Registration No"&gt;
      &lt;p:ajaxlistener="#{renewalContractorBean.readLicenseDetailsById(renewalContractorBean.registrationNo)}/&gt;
  &lt;/p:inputText&gt;
  </code></pre>
  
  <p>and my method in bean is </p>
  
  <pre><code>public void readLicenseDetailsById(String id) {
      FirmOrCompany firmOrCompany = contractorRenewableService.readLicenseDetailsById(id);
      this.setLicenseName(firmOrCompany.getLicensePersonName());
      this.setClassofLicense(firmOrCompany.getLicenseAppliedFor());
  }
  </code></pre>