6 Replies Latest reply on Sep 14, 2012 7:04 PM by milovdzee

    togglePanel together with a queue fails. Why?

    milovdzee

      I have the following page (Richfaces 4.2.2-Final, Myfaces-2.1.8):

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:a4j="http://richfaces.org/a4j"
        xmlns:rich="http://richfaces.org/rich"
      >

      <h:head>
      </h:head>

      <h:body>
          <!-- <a4j:queue id="mainQueue" requestDelay="100"/> -->
          <h:form onsubmit="console.log('onsubmit');">
              <a4j:outputPanel id="extraTabsPanel" layout="block">
                  <a4j:outputPanel style="border: 1px solid red; margin: 5px; background: lightgrey;">
                      <rich:toggleControl event="click" targetPanel="extraTabs" targetItem="item1"/>
                      Panel 1 selector
                  </a4j:outputPanel>
                  <a4j:outputPanel style="border: 1px solid red; margin: 5px; background: lightgrey;">
                      <rich:toggleControl event="click" targetPanel="extraTabs" targetItem="item2"/>
                      Panel 2 selector
                  </a4j:outputPanel>
              </a4j:outputPanel>

              <rich:togglePanel id="extraTabs" switchType="ajax" render="extraTabsPanel">
                  <rich:togglePanelItem name="item1">panel 1 data</rich:togglePanelItem>
                  <rich:togglePanelItem name="item2">panel 2 data</rich:togglePanelItem>
              </rich:togglePanel>
          </h:form>
      </h:body>

      </html>

       

      This works fine as long as the queue is commented. As soon as I activate the queue the tab switching stops functioning. Why?

      Thanks, Milo