2 Replies Latest reply on Sep 14, 2007 1:34 PM by ilya_shaikovsky

    Submit with ajax requests

    fred.lamuette

      Hi all,

      Env : Ajax4Jsf+Seam2+Facelets

      My page :

      <h:form>
      ...
      <s:decorate id="sname_id" template="/layout/edit.xhtml">
       <ui:define name="label">name</ui:define>
       <h:inputText id="name_id" value="#{myAction.name}" required="true" size="15" maxlength="25" converter="stringConverter">
       <a:support event="onblur" reRender="sname_id" ajaxSingle="true" limitToList="true" eventsQueue="form"/>
       </h:inputText>
       </s:decorate>
      ...
      <h:commandButton action="next" value="next" id="button_next"/>
      </h:form>
      


      My question is pretty simple, I'd like to be sure that when submitting the form, none parallel ajax request is still active.
      I could change h:commandButton by <a:commandButton eventsQueue="form" ...> but it doesnt work with Seam (the following page is not rendered, always on the same page).
      Is there is another alternative ? Maye disabling the button while ajax requests are sent ?
      Thank you a lot.