0 Replies Latest reply on Apr 11, 2011 8:35 AM by Bronislav Pechmik

    rich:panelMenu works slow with a4j:poll

    Bronislav Pechmik Newbie

      Hello. I have such page. I midle there is table which is updated evry 500 ms. At left there is menu. Then clicks menu I need to wait for several minutes before i will be redirected to anothe page. Then poll is turned off evry thing is works fine. In privious version evry thing was ok.

       

      <?xml version='1.0' encoding='UTF-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:f="http://java.sun.com/jsf/core"
            xmlns:ui="http://java.sun.com/jsf/facelets"
            xmlns:a4j="http://richfaces.org/a4j"
            xmlns:rich="http://richfaces.org/rich"
            xmlns:c="http://java.sun.com/jsp/jstl/core">
          <h:head> 
          </h:head>
          <h:body>
              <!--<a4j:queue  requestDelay="300"/>-->
              <h:outputStylesheet library="css" name="css.css"  />
              <h:outputScript library="js" name="test_date.js" />
                 <h:panelGrid columns="2" width ="100%" cellpadding="0" cellspacing="0"
                           style="vertical-align:top;text-align:right;"
                           columnClasses="cols,cols" >
                  <h:panelGroup style="vertical-align:top;" >
                          <h:form style="margin-top: 15px;" > 
       <h:panelGrid columns="2"
       columnClasses="cols,cols"
       border="0"
       cellspacing="0"
       cellpadding="0"
       style="vertical-align:text-top;" >
      
       <rich:panelMenu style="width:200px" immediate="true"
       groupExpandedLeftIcon="triangleUp"
       groupCollapsedLeftIcon="triangleDown"
       topGroupExpandedLeftIcon="chevronUp"
       topGroupCollapsedLeftIcon="chevronDown"
       itemLeftIcon="disc" itemMode="ajax"
       > 
       <rich:panelMenuGroup label="Trading accounts"
       status="waitStatus" immediate="true">
       <rich:panelMenuItem label="Manage accounts"
       action ="TradersAccounts"
       status="waitStatus" immediate="true"
       />
       <rich:panelMenuItem label="Manage Groups/Firms"
       action="GroupsFirms"
       status="waitStatus"
       />
       </rich:panelMenuGroup> 
       <rich:panelMenuGroup label="Infrastructure"
       status="waitStatus" >
       <rich:panelMenuItem label="Venue Connections and accounts"
       action="VenueConnections"
       status="waitStatus"
       />
       <rich:panelMenuGroup  label="Order Routers" 
       status="waitStatus" >
       <rich:panelMenuItem label="Manage logins"
       status="waitStatus"
       />
       <rich:panelMenuItem label="Manage Liquidity Providers"
       action="LiquidityProviders"
       status="waitStatus"
       />
       <rich:panelMenuItem label="Manage Order Routers"
       action="OrderRouters"
       status="waitStatus"
       />
       </rich:panelMenuGroup>
       <rich:panelMenuGroup label="Feed Engines" 
       status="waitStatus" >
       <rich:panelMenuItem label="Manage Unicast/Historical Accounts"
       status="waitStatus"
       action="UnicastHistoricalAccounts"
       />
       <rich:panelMenuItem label="Manage Feed Engine"
       status="waitStatus"
       />
       </rich:panelMenuGroup>
       <rich:panelMenuItem label="Matching Engines"
       status="waitStatus"
       />
       <rich:panelMenuItem label="Latencies"
       action="Latencies"
       status="waitStatus"
       />
       </rich:panelMenuGroup> 
       </rich:panelMenu>
       </h:panelGrid>
       </h:form>
                  </h:panelGroup>
                  <h:panelGroup>
               <h:form style="margin-left: 15px; margin-top: 15px;" > 
                   <a4j:poll id="poll" interval="650" limitRender="true"
                            action="#{TablesProvider.reload}"
                            render="poll,myId" > 
                   </a4j:poll>
                   <rich:dataTable value="#{TablesProvider.rows}"
                                  var="i"
                                  id= "myId"> 
                      <rich:column style="vertical-align:text-top;border-width: 0px;border-top: 0px; border-left: 0px; " >
      
                          <rich:dataTable value="#{Commissions.data}" var="repeater" id="tbl">
                              <f:facet name="header">
                                  <h:outputText value="Commissions" style="text-align:right"/>
                              </f:facet>
                              <rich:column width="150">
                                  <f:facet name="header">
                                      <h:outputText value="Traders"/>
                                  </f:facet>
                                  <h:outputText value="#{repeater.trader}"/>
                              </rich:column>
                              <rich:column width="150">
                                  <f:facet name="header">
                                      <h:outputText value="Commission"/>
                                  </f:facet>
                                  <h:outputText value="#{repeater.commission}">
                                      <f:convertNumber type="number"
                                                       groupingUsed="true"
                                                       locale="en"/>
                                  </h:outputText>
                              </rich:column>
                          </rich:dataTable>
                      </rich:column>
                  </rich:dataTable>
                 </h:form>
               </h:panelGroup>
             </h:panelGrid>
          </h:body>
      </html>
      
      

      What is wrong?