3 Replies Latest reply on May 8, 2012 6:50 AM by ensemien

    [RF4 ] how can i  acced to the facelet via the <rich:panelMenuItem >

    ensemien

      Hello 

       

      in my project with jsf and RF4 , i want to acced to my facelet via the <rich:panelMenu > , i dont know what i must add in the <rich:panelMenuItem to do this .

      in other terms when i click in the PanelMenuItem ,i must to acced to the facelet corresponding .

      i joined my message the capture for emplacement of my facelets (.xhtml )

       

      my facelet : leftMenu.xhtml :

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
           xmlns:ui="http://java.sun.com/jsf/facelets" 
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich">
        
      <h:head> 
        <link href="style.css" rel="stylesheet" type="text/css" />
       </h:head>
      
      
       <h:body>
      
          <h:panelGrid columns="2"   >
                      <rich:panel   id="menuPan"  >
      
                          <h:form>
                              <rich:panelMenu style="width:200px" itemMode="ajax"
                                  groupMode="client" groupExpandedLeftIcon="triangleUp"
                                  groupCollapsedLeftIcon="triangleDown"
                                  topGroupExpandedRightIcon="chevronUp"
                                  topGroupCollapsedRightIcon="chevronDown" itemLeftIcon="disc">
                                  <rich:panelMenuGroup label="Gestion des bénéficiaires"  >
                                      <rich:panelMenuItem label="Les accidentés" name="Item_1_1"  />
                                      <rich:panelMenuItem label="Les ayants droit" name="Item_1_2" />
                               
                                  </rich:panelMenuGroup>
                                  <rich:panelMenuGroup label="Gestion des pensions">
                                      <rich:panelMenuItem label="Les rentes" name="Item_2_1" mode="" />
                                      <rich:panelMenuItem label="Les rachats" name="Item_2_2" />
                                      <rich:panelMenuItem label="Les redressements" name="Item_2_3" />
                                   </rich:panelMenuGroup>
                               
                              </rich:panelMenu>
      
                          </h:form>
      
                      </rich:panel>
                  </h:panelGrid>
      
           
      
      
          </h:body>
      </ui:composition>
      

       

      i need your help ; thank you