6 Replies Latest reply on Apr 15, 2009 4:57 AM by nimo stephan

    reset inputText-Values strange..

    nimo stephan Master

      How can I refresh inputText-Values, when a form is ajax-refreshed?

      I have a button

      <a4j:commandButton immediate="true" action ="{myBean.refresh} reRender="myForm"/>

      <h:myForm>
      <h:inputText id="myInputText" value="#{myInputValue}" validator=".."/>
      </h:myForm>

      class myBean{
      
      // I use seam
      @In(required="false") @Out(required="false")
      String myInputValue;
      
      void refresh(){
      
      myInputValue = "";
      
      }


      Even myInputValue is definitly set to an empty String, the inputText "myInputText" shows the old data (which was typed before invoking the reset-Button).

      What is the reason for such an odd behaviour?
      Should I use <a4j:form> ?