title: primefaces watermark disappears after disabling and re enabling a text field using p:ajax
body: <p>I am using p:ajax of primefaces in a p:selectOneRadio, to disable and re-enable form input text fields. these text fields have watermarks which disappear after disabling and they do not appear even after re-enabling them. I could not figure out the problem. please help. The code chunk where it appears is as bellow</p>
  
  <pre><code>&lt;h:outputText 
     value="#{msg['elicense.contractorLicenseForm.personal.licenseApplied']}"/&gt;
  &lt;p:selectOneRadio id="licenseApplied" 
                    value="#{contractorLicenseBean.licenseApplied}"&gt;
      &lt;f:selectItem itemLabel="Yes" itemValue="1" /&gt;
      &lt;f:selectItem itemLabel="No" itemValue="0"/&gt;
      &lt;p:ajax update="licensePersonName, relationshipPersonName" /&gt;
  &lt;/p:selectOneRadio&gt;
  &lt;h:outputText value="When it is yes, it should skip to supervisor details"/&gt;
  
  &lt;h:outputText 
     value="#{msg['elicense.contractorLicenseForm.personal.licensePersonName']} "/&gt;
  &lt;p:inputText id="licensePersonName" 
               value="#{contractorLicenseBean.licensePersonName}" 
               required="true" 
               label="LicensePersonName" 
               disabled="#{contractorLicenseBean.licenseApplied=='1'}"/&gt;
  &lt;p:watermark for="licensePersonName" 
               value="Person/firm/company on whose Favour License is Sought " 
               id="watermark2" /&gt;
  
  &lt;h:outputText 
     value="#{msg['elicense.contractorLicenseForm.personal.relationshipPersonName']} "/&gt;
  &lt;p:inputText id="relationshipPersonName" 
               value="#{contractorLicenseBean.relationshipPersonName}" 
               required="true" 
               label="RelationshipPersonName" 
               disabled="#{contractorLicenseBean.licenseApplied=='1'}" /&gt;
  &lt;p:watermark for="relationshipPersonName" 
               value="Relationship of the Applicant " 
               id="watermark3" /&gt;
  </code></pre>