0 Replies Latest reply on Jul 26, 2007 2:16 PM by dantevaze

    problem with ajax update and outputText components

    dantevaze

      Hi all. Im having a problem with a a4j:commandButton and several t:outputText components wrapped inside an a4j:outputPanel. Here is the code:

      <a4j:outputPanel id="profdetail" >
       <t:panelGrid columns="2" cellpadding="0" border="0">
       <t:outputText value="#{msg.userId}" styleClass="output" />
       <t:inputText id="prid" disabled="true" maxlength="3" styleClass="input" value="#{profileBean.id}"/>
       <t:outputText value="#{msg.userFN}" styleClass="output" />
       <t:inputText id="pfn" maxlength="20" styleClass="input" value="#{profileBean.fname}"/>
       <t:outputText value="#{msg.userLN}" styleClass="output" />
       <t:inputText id="pln" maxlength="20" styleClass="input" value="#{profileBean.lname}"/>
       <t:outputText value="#{msg.userRole}" styleClass="output" />
       <t:inputText id="prole" maxlength="10" styleClass="input" value="#{profileBean.role}"/>
       <t:outputText value="#{msg.userReg}" styleClass="output" />
       <t:inputText id="prsub" maxlength="10" styleClass="input" value="#{profileBean.subregion}"/>
       <t:outputText value="#{msg.userUsr}" styleClass="output" />
       <t:inputText id="pusr" maxlength="15" styleClass="input" value="#{profileBean.username}"/>
       <t:outputText value="#{msg.userOldPass}" styleClass="output" />
       <t:inputSecret id="pop" maxlength="10" styleClass="input" value="#{profileBean.oldpassword}"/>
       <t:outputText value="#{msg.userNewPass}" styleClass="output" />
       <t:inputSecret id="pnp" maxlength="10" styleClass="input" value="#{profileBean.newpassword}"/>
       <t:outputText value="#{msg.userReEnter}" styleClass="output" />
       <t:inputSecret id="psnp" maxlength="10" styleClass="input" value="#{profileBean.newpasswordsec}"/>
       <t:outputText value="" styleClass="output" />
       <a4j:commandButton action="#{profileBean.update}" value="#{msg.userChange}" styleClass="submit" reRender="profdetail" alt="Update your profile"/>
       </t:panelGrid>
       </a4j:outputPanel>
      


      When I click on the button,the fields are updated,but the values of the outputText components dissapear! Any help on this? Thanks