0 Replies Latest reply on Dec 6, 2010 11:53 AM by harlosh.alex

    rich:panelMenu & f:facet

    harlosh.alex

      Hi all,

       

      I wondered if you can do this to allow for custom icons for the panel menu. I know I can specify individual images for the icon but I want to use one large image and then use the background position to bring it into focus. This method is known as CSS sprites.

       

      <rich:panelMenu mode="server"
                           iconExpandedGroup=""
                           iconCollapsedGroup=""
                           iconExpandedTopGroup=""
                           iconCollapsedTopGroup=""
                           iconItem="">
                                  <f:facet name="iconItem">
                                      <span class="security-icon"></span>
                                  </f:facet>
                                  <f:facet name="iconCollapsedGroup">
                                      <span class="security-collapsed"></span>
                                  </f:facet>

       

      In the stylesheet I set a background image on the span. I've already done this with the rich:tree componenet, just wondering if I can do the same to panelMenu.

       

      Any advice gratefully welcome.

       

      Thanks.