0 Replies Latest reply on Nov 22, 2012 8:30 AM by _tom

    Ajax4Jsf Problem

    _tom Newbie

      Hi,

       

      i have a problem with the following code:

       

      <h:form id="MainForm">

       

      <h:inputText value="#{user.name}">

               <a4j:support event="onchange" action="#{user.correctName}" reRender="MainForm" />

      </h:inputText>

       

      <h:commandButton action="#{user.saveName}" value="do something" />

      </h:form>

       

      When I change the value in the Textfield und press directly the button, the action "user.correctName" is called.

      It makes all letters of the name upper case. Then the action "user.saveName" is called.

      I would like, that the action takes the corrected name, but it takes the name which was typed into the Textfield.

       

      Can anybody help me?