4 Replies Latest reply on Jun 19, 2007 9:59 AM by Blondel Michaël

    refresh doesn't work if jsf validation failed

    Blondel Michaël Newbie

      Hello,

      I have this code :

      <h:inputText value="#{exaWzdProductBean.productName}" id="productName" required="true" />
      
      <h:selectOneMenu value="#{exaWzdProductBean.opsecAuthType}">
       <a4j:support event="onclick" reRender="panel" />
       <f:selectItem itemValue="0" itemLabel="Mode clair"/>
       <f:selectItem itemValue="1" itemLabel="Mode authentifié"/>
       <f:selectItem itemValue="2" itemLabel="Mode authentifié et chiffré"/>
      </h:selectOneMenu>
      
      <a4j:outputPanel id="panel">
       <h:panelGroup id="group" rendered="#{exaWzdProductBean.opsecAuthenticated}">
       <h:outputText value="TEST" />
       </h:panelGroup>
      </a4j:outputPanel>
      


      When I change the value of my selectOneMenu, the outputPanel is refresh only if the inputText "productName" is filled.
      The inputText has the attribute required. So If it's empty, the jsf validation failed and a4j does not send the request to the server.
      Thanks for your help.