2 Replies Latest reply on Dec 31, 2011 4:52 AM by Christian Peter

    Richfaces 4.1: onsumit of form not called

    Michael Heinen Newbie

      The onsubmit attribute of my form is not called if I execute an ajax command in richfaces 4.1

       

      <h:form id="docform" onsubmit="alert('yippieh);">

          <a4j:commandButton

                onclick="if(!check(this)){return false;}"

                actionListener="#{MyController.do}"

                 execute="@this"

                 render="foo"

                  oncomplete="doit();"

            .../>

       

      This was working well with Richfaces 3.3.3.

       

      How can specify some JS functions that should be executed before any ajax call?

      I do not want to add it to a few hundred commands.