0 Replies Latest reply on Mar 20, 2008 4:30 PM by Tony Mai

    Problem setting image on rich:menuItem

    Tony Mai Apprentice

      Hello,

      How do I tell rich:menuItem which graphic image to render as its facet?

      The following code seems to always pick the last h:graphicImage. How do I put a condition into it?

      <rich:menuItem submitMode="ajax" action="#{wcQuoteMgr.toggleSMA}" reRender="chartMenuPanel">
       <f:facet name="icon">
       <h:graphicImage value="/img/menu_unchecked.gif" rendered="#{!wcQuoteMgr.chartSMA}" />
       <h:graphicImage value="/img/menu_checked.gif" rendered="#{wcQuoteMgr.chartSMA}"/>
       </f:facet>
      


      Any help is appreciated,
      -tony