2 Replies Latest reply on May 19, 2009 6:17 AM by giftsam

    Rich effects in rich panel menu

      Hi all,

      I would like to apply rich effects(type="BlindDown") to rich panel menu. I can easily implement like this

      <rich:panelMenuGroup id="componentId" label="Group1">
       <rich:effect event="onclick" for="componentId" type="BlindDown" params="duration:0.8" />
       <rich:panelMenuItem label="page1" action="#{PanelMenu.updateCurrent}" reRender="richId">
       <f:param name="current" value="Item 1.1" />
       </rich:panelMenuItem>
       <rich:panelMenuItem label="pag2" action="#{PanelMenu.updateCurrent}">
       <f:param name="current" value="Item 1.2"/>
       </rich:panelMenuItem>
       <rich:panelMenuItem label="page3" action="#{PanelMenu.updateCurrent}">
       <f:param name="current"value="Item 1.3"/>
       </rich:panelMenuItem>
       </rich:panelMenuGroup>


      But the rich effect should be applied only if I clicked the rich panel group. But now even if I clicked the rich:panelMenuItem the rich effects are applied. how can I apply rich effects only if I clicked the rich panel group. please suggest me!!

        • 1. Re: Rich effects in rich panel menu
          ilya_shaikovsky

           

           <rich:panelMenuGroup label="Group 1" id="componentId" onexpand="expand();">
           <rich:effect for="componentId" type="BlindDown" params="duration:0.8" disableDefault="true" name="expand"/>
          


          this works for me.

          • 2. Re: Rich effects in rich panel menu

            Thank you so much ilya_shaikovsky. I had implemented your code but the effect is applying only when <rich:panelMenuGroup> expands, but its not applying while the
            <rich:panelMenuItem> expands. Is there any solution to handle both. if not is there any attribute in <rich:panelMenu> for slow expanding??please give me some valuable input on this regardings..
            Thanks in Advance!!!