3 Replies Latest reply on Dec 27, 2007 4:40 AM by Marine Wacheux

    Rerender after validation errors

    dennie Newbie

      The problem is that an input component will not rerender after a validation error occured.

      Example code:

      <a4j:commandButton action="validate" value="validate"/>
       <a4j:support action="#{testView.doTest}" event="onkeyup" reRender="test"/>
      <h:inputText value="#{orderView.test}" required="true" id="test">
       <f:validateLength minimum="2"/>

      Handling 1(works): type something in first textbox, validation is ignored,:test is rerendered everything works.
      Handling 2: click validate button, and try handling 1. :test doesn't get updated.

      My question is: how do you people handle this problem? I think the only way is to reset the submitted and local value of UIInput using component binding, but I don't like this approach.

      Can anybody help me?