2 Replies Latest reply on Mar 3, 2011 9:39 AM by spiritfox26

    rich:panelMenuItem selected class?

    spiritfox26

      Hello everybody, i need help.

       

      I'm trying set the text bold when one item is selected, but i dont have lucky!

       

      In example, when the user click un PC (category) i need set bold the text PC (in this case) to indicate what category is clicked.

       

      Captura.PNG

       

       

       

      Any suggestion?

       

      Thanks in advanced!

        • 1. Re: rich:panelMenuItem selected class?
          javaxchange

          Hi Agustine,

           

          Try this,

           

          <style>

          .rich-pmenu-selected-element {

          font-weight: bold;

          }

          </style>

           

          <rich:panelMenu selectedChild="#{yourBean.activeMenu}" id="menuBodyPanel">

                      <rich:panelMenuItem label="PC">   

                         <a4j:support event="onclick"  action="#{yourBean.changeActiveMenu}" reRender="menuBodyPanel">

                              <a4j:actionparam name="PC" value="PC" assignTo="#{yourBean.activeMenu}"/>

                         </a4j:support>

                      </rich:panelMenuItem>

          </rich:panelMenu>

           

           

           

          Rgds,

          Sreejith

          • 2. rich:panelMenuItem selected class?
            spiritfox26

            It's works!!!

             

            Thanks!

             

            Best regards