4 Replies Latest reply on Jan 16, 2009 4:43 AM by nemanya

    panelMenu not rendered

    nemanya

      I am using panelMenu component with richfaces 3.2.2 and seam 2.1.
      Somethimes (5-10% of cases) menu is not rendered at all. Problem is reported in both Firefox 3 and IE 7 but it seems happen more frequently in IE.
      Am I using panelMenu in wrong way? Maybe because I use panelMenuItem as child component of panelMenu instead od panelMenuGroup?

      Samle code looks like this:

      <rich:panelMenu
       id="leftPanelMenu"
       binding="#{sideBarMenuHandler.menu}"
       iconExpandedGroup="/graphics/arrow_on.gif"
       iconCollapsedGroup="/graphics/arrow_off.gif"
       iconExpandedTopGroup="/graphics/arrow_on.gif"
       iconCollapsedTopGroup="/graphics/arrow_off.gif"
       iconGroupPosition="right"
       iconGroupTopPosition="right"
       iconItemPosition="none"
       iconItemTopPosition="right"
       expandSingle="true"
       immediate="true"
       required="true"
       style="width:165px"
       styleClass="leftPanelMenu"
       topItemClass="leftPanelMenu-top-item"
       itemClass="leftPanelMenu-item"
       topGroupClass="leftPanelMenu-top-group"
       groupClass="leftPanelMenu-group"
       hoveredItemClass="leftPanelMenu-item-selected"
       iconClass="leftPanelMenu-item-icon"
       selectClass="leftPanelMenu-selected-item"
       >
      
       <rich:panelMenuItem
       id="leftPanelMenu_home"
       name="home"
       icon="none"
       styleClass="dr-pmenu-top-group"
       >
       <s:link
       onclick="#{rich:component('modalwindow')}.show()"
       view="/reports/home.xhtml"
       value="#{messages.homepage}"
       styleClass="leftPanelMenu-link"
       />
       </rich:panelMenuItem>
      
      
       <rich:panelMenuGroup
       id="leftPanelMenu_standardReports"
       label="#{messages.standard_reports}"
       iconExpanded="/graphics/arrow_on.gif"
       iconCollapsed="/graphics/arrow_off.gif"
       iconCollapsedPosition="left"
       >
       <rich:panelMenuGroup
       id="leftPanelMenu_ticketInfo"
       label="#{messages.ticketing_information}"
       iconExpanded="triangleDown"
       iconCollapsed="triangle"
       iconPosition="right"
       >
       <rich:panelMenuItem
       id="leftPanelMenu_eventSummary"
       styleClass="thirdItem"
       >
       <s:link
       view="/reports/standard/event-summary.xhtml"
       onclick="#{rich:component('modalwindow')}.show()"
       value="#{messages.event_summary_report}"
       styleClass="leftPanelMenu-link"
       />
       <rich:toolTip showDelay="500" value="#{messages.event_summary_tooltip}" horizontalOffset="20">
       </rich:toolTip>
       </rich:panelMenuItem>


        • 1. Re: panelMenu not rendered
          ilya_shaikovsky

          If you wan't to use nested component onclicks processing - please use submitMode = none for the menu or at least for the nodes which uses nested command action components.

          B.t.w. We already releaset Beta 5 and CR1 for RF 3.3.0

          • 2. Re: panelMenu not rendered
            nemanya

            I need so save state of panelMenu so submit mode=none is not going to help. Is there some other workaround I can use?
            Is this a bug in richfaces that will be fixed in some future version or I am just using this component in the wrong way?
            Thanx for your help

            • 3. Re: panelMenu not rendered
              ilya_shaikovsky

              According to your code - two submits occurs after link clicking(from panel menu and from s:link). And this isn't correct. As s:link also submits form - your state will be saved with submitMode=none

              • 4. Re: panelMenu not rendered
                nemanya

                According to seam documentation s:link does not submit form.

                Description

                A link that supports invocation of an action with control over conversation propagation. Does not submit the form.