0 Replies Latest reply on May 29, 2008 9:15 AM by lgweb

    Problems with PanelMenu

    lgweb

      I'm having doubts about the panelMenu component, like that when you click a PanelMenuItem the user was directed to the corresponding page, see how implementei this, the rules of navigation rules are global in faces.config.xml but qdo click the link nothing happens to reexibida.Alguem page and know what's wrong here?
      Then my code:

      
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
      
      
      
      
      <html>
       <head>
       <title></title>
       </head>
       <body>
      
      
      
       <rich:panelBar width="137" height="340">
       <rich:panelBarItem label="#{msg.erros}">
       <h:messages errorStyle="color: red" infoStyle="color: green" layout="table" showSummary="true" showDetail="false" globalOnly="true"/>
       </rich:panelBarItem>
      
      
       </rich:panelBar>
       <h:panelGrid columns="2" columnClasses="cols" width="137">
      
       <rich:panelMenu style="width:137px" mode="ajax"
       iconExpandedGroup="disc" iconCollapsedGroup="disc"
       iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
       iconCollapsedTopGroup="chevronDown" width="160">
       <rich:panelMenuGroup label="#{msg.cadastros}" ajaxSingle="true" >
       <rich:panelMenuItem action="MNumeracao" immediate="true" ajaxSingle="true">
       <h:commandLink value="#{msg.numeracao}" action="MNumeracao" immediate="true"></h:commandLink>
       </rich:panelMenuItem>
       <rich:panelMenuItem>
       <h:commandLink value="#{msg.cliente}" action="MCliente" immediate="true"></h:commandLink>
       </rich:panelMenuItem>
       <rich:panelMenuItem >
       <h:commandLink value="#{msg.produto}" action="MProduto" immediate="true"></h:commandLink>
       </rich:panelMenuItem>
       <rich:panelMenuItem >
       <h:commandLink value="#{msg.cidade}" action="MCidade" immediate="true"></h:commandLink>
       </rich:panelMenuItem>
      
       <rich:panelMenuItem action="MCondicao" immediate="true">
       <h:commandLink value="#{msg.condicao}" action="MCondicao" immediate="true"></h:commandLink>
       </rich:panelMenuItem>
       </rich:panelMenuGroup>
      
       <rich:panelMenuGroup label="#{msg.relatorios}">
       <rich:panelMenuItem >
       <h:outputLink value="#" id="link" >
       <h:outputText value="#{msg.vendasperiodo}"></h:outputText>
       <rich:componentControl for="RLVC" attachTo="link" operation="show"
       event="onclick"/>
       </h:outputLink>
       </rich:panelMenuItem>
       <rich:panelMenuItem >
       <h:outputLink value="#" id="link2" >
       <h:outputText value="#{msg.vendascliente}"></h:outputText>
       <rich:componentControl for="relvendascliente" attachTo="link2" operation="show"
       event="onclick"/>
       </h:outputLink>
      
      
       </rich:panelMenuItem>
      
      
      
       </rich:panelMenuGroup>
      
       <rich:panelMenuGroup label="#{msg.opcoes}">
      
       <rich:panelMenuItem label="#{msg.ajuda}" >
      
       </rich:panelMenuItem>
      
       <rich:panelMenuItem label="#{msg.sobre}">
      
      
      
       </rich:panelMenuItem>
      
      
       </rich:panelMenuGroup>
       </rich:panelMenu>
      
      
      
       </h:panelGrid>
      
      
      
       </body>
      </html>
      
      

      This page is imported by others with the tag <c:import...>