1 Reply Latest reply on Jun 5, 2007 9:02 AM by sergeysmirnov

    ajax4jsf problem (or bug?)

    jleveles

      Hi all!

      I have a facelet page, with one form and input fields and with this:

      ...
       <h:inputText id="tradeId" value="#{model.tradeId}" required="true"/>
      
       <a4j:region>
      
       <a4j:commandButton id="generate" value="#{msg['button.generate.tradeid']}"
       action="#{controller.generateTradeId}"
       reRender="tradeId"/>
      
       </a4j:region>
      ...
      


      After opening the page everything working fine, the generateTradeId method sets the tradeid property and this value appears on the client side (in the input text). But after submitting the whole form with validation errors (ex. empty required fields) begins the problem. The generateTradeId method is called but the getter for tradeid never. The ajax response contains the previous value (or empty) for tradeid.

      Any suggestion?
      Thanx in advance!