title: JSF 2 and Primefaces attribute Ajax=false
body: <p>I have a form that has a commandlink that opens a modal dialog, the dialog has an inputtext and a button saved, when I enter a value in the inputtext, this value has to be copied to another inputtext in the first form, but the attribute update doesn't update the inputtext in the first form, I have to put attribute ajax="false" in the button save of the dialog for that reload the page, so the value in the inputtext of the dialog is copied to the inputtext of the first form. I want to know if there is another way to update this value without the attribute ajax="false" and doesn't reload the page</p>
  
  <p>create_store.xhtml</p>
  
  <pre><code>&lt;ui:composition  
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:p="http://primefaces.org/ui" &gt;
  
  &lt;h:panelGrid columns="3" width="100%" border="0" columnClasses="colC1,colC2"&gt;
      &lt;h:outputText  value="Code: " style="margin-right:20px;"/&gt;  
      &lt;p:inputText id="idCodProvider" value="#{storeBean.au.code}" size="84"/&gt;
  
      &lt;h:outputText  value="Name: " style="margin-right:20px;"/&gt;  
      &lt;p:inputText id="idName" value="#{storeBean.au.name}" size="84"/&gt;
  
      &lt;p:commandLink id="idAdressLink" style="margin-right:20px;" actionListener="#{storeBean.selectAdress}" 
                     update=":idFormAdress:idPgADressStore" &gt;  
           &lt;h:outputText value="Adress:" /&gt;
      &lt;/p:commandLink&gt;
      &lt;p:inputText id="idAdressStore" label="Adress" value="#{storeBean.au.adressStore}" size="84"/&gt;
      &lt;h:outputText value="&amp;#160;&amp;#160;&amp;#160;" /&gt;
  &lt;/h:panelGrid&gt;
  </code></pre>
  
  <p> </p>
  
  <p>dialog_adress.xhtml</p>
  
  <pre><code>&lt;ui:composition  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:p="http://primefaces.org/ui"&gt;
  
  &lt;h:panelGrid id="idPgAdressStore" columns="2" columnClasses="col1,col2"&gt;
      &lt;h:outputLabel for="idAdress" value="Adress: " /&gt;  
      &lt;p:inputText id="idAdress"  label="Adress" size="40" value="#{adressBean.au.strAdress}"/&gt;
      &lt;f:facet name="footer"&gt;
          &lt;h:panelGrid width="100%" columns="2" style="text-align:center"&gt;
              &lt;p:commandButton id="idBtSaveDir" value="Save" actionListener="#{storeBean.saveAdress}" 
                               update=":idFormAdress,:idFormStore" onComplete="PF('dlgDirStore').hide()"/&gt;
              &lt;p:commandButton id="idBtCancelDir" value="Cancel" type="button" onclick="PF('dlgDirStore').hide()"/&gt;
          &lt;/h:panelGrid&gt;
      &lt;/f:facet&gt;
  &lt;/h:panelGrid&gt;
  </code></pre>
  
  <p></p>