6 Replies Latest reply on Feb 12, 2009 2:32 AM by nimo stephan

    dropDownMenu is very very slow

    Ahmet Guven Newbie

      Hello, I am using RichFaces for the first time and I like it. But I have a problem with rich:dropDownMenu component. I have a large menu (6 main, >60 sub menus). The pages are loaded more than 12 seconds. When I remove rich:dropDownMenu component, the pages are loaded less than 1 second. My code is like:

      <rich:toolBar style="width:1000px;">
      <rich:dropDownMenu showDelay="0">
      <f:facet name="label">
      <h:panelGroup>
      <h:graphicImage value="/images/icons/copy.gif" styleClass="pic"/>
      <h:outputText value="MainMenu1"/>
      </h:panelGroup>
      </f:facet>

      <rich:menuGroup value="SubMenu1">
      <rich:menuItem submitMode="ajax" value="SubSubMenu1">
      <f:facet name="icon">
      <h:graphicImage value="/images/icons/form_add.png"/>
      </f:facet>
      </rich:menuItem>
      <rich:menuItem submitMode="ajax" value="SubSubMenu2">
      <f:facet name="icon">
      <h:graphicImage value="/images/icons/form_query.png" />
      </f:facet>
      </rich:menuItem>
      </rich:menuGroup>

      <rich:menuGroup value="SubMenu2">
      <rich:menuItem submitMode="ajax" value="SubSubMenu1">
      <f:facet name="icon">
      <h:graphicImage value="/images/icons/form_add.png"/>
      </f:facet>
      </rich:menuItem>
      <rich:menuItem submitMode="ajax" value="SubSubMenu2">
      <f:facet name="icon">
      <h:graphicImage value="/images/icons/form_query.png" />
      </f:facet>
      </rich:menuItem>
      </rich:menuGroup>
      .......
      Is there a way to speed up loading my pages? Or can not I use rich:dropDownMenu for large menus? Thanks to anybody helping.