0 Replies Latest reply on Nov 30, 2007 5:18 AM by Hans Meier

    disable a4j:commandButton

    Hans Meier Newbie

      Hi,

      the commandButton with the id submit is set to disable after clicking
      that works fine... then the method processSubmit is executed which
      thats the booleanfield submitEnabled to true..
      So actually after clicking the "clear" commandButton which reRenders the submit commandButton this button should be enabled again, but this
      is not the case, why??

      <a4j:commandButton id="submit"
      disabled="#{homePageData.submitEnabled}"
      value="Submit"
      styleClass="submit_button"
      onclick="disabled=true"
      actionListener="#{homePage.processSubmit}" >
      </a4j:commandButton>


      <a4j:commandButton id="clear" styleClass="submit_button"
      value="Clear"
      actionListener="#{homePage.processClear}"
      ignoreDupResponses="true"
      reRender="inputRegion, serviceError, submit"/>