0 Replies Latest reply on May 12, 2014 1:54 AM by dozer247

    How does the a4j:queue handle queued requests? should it send queue request as postback=false

    dozer247

      Hi

      We have an app running  Seam  2.3.1.Final with Richfaces 4.3.6.

      I've noticed that when you have an input element with a change event such as

       

      <h:inputText id="unitPriceExc" name="unitPrice" styleClass="short" value="#{invItem.temporaryUnitPrice}" >
              <f:validateDoubleRange  minimum="0"  />
                  <a4j:ajax event="change" execute="@this" listener="#{invoiceActionBean.refreshInvoiceItemPrices}" render="netAmount,@footer" />
          </h:inputText>
      

       

      and a a4j:command button like

       

      <a4j:commandButton value="Add New Line" action="#{invoiceActionBean.addInvoiceItemRow}" id="newLine" render="invItemTable" execute="@this"  >
      </a4j:commandButton>
      

       

      When you enter an amount in the unitPrice and then click the Add New Line button.  The change event and submit event are both placed in the queue.

      Once the change event response has finished

      The queued  submit event  doesn't include the change event response in the next request.  Is it possible for queue requests to include the response from the previous event?

      Also I've noticed the queued submit event is not a post-back request.  As  com.sun.faces.context.FacesContextImpl_POST_BACK=false and one of our seam pages.xml navigation rule is executed. e.g.   <action execute="#{invoiceDetailAction.create}" on-postback="false"/>

      Is this a bug or is this how the queue works?

       

      Thanks