2 Replies Latest reply on Sep 4, 2013 3:39 AM by liuliu

    f:param works with rich:panelMenuItem in RF4?

    liuliu

      hi,

       

      i want to know if f:param or a4j:param work with rich:panelMenuItem.

       

      i have a menuitem who redirect to a new page, i can get the param by FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("param") if i type url?param=test,

      but i get null when use f:param or a4j:param

        • 1. Re: f:param works with rich:panelMenuItem in RF4?
          bleathem

          PanelMenuItem is an action component, so it *should* work.  Can you post a code sample of how your are using it?  Try replacing your panelMenuItem by a commandButton, and verify that works as expected.

          • 2. Re: Re: f:param works with rich:panelMenuItem in RF4?
            liuliu

            in page1, i have these

            <rich:panelMenuItem name="PAGE_GESTION_PARAM_UCD" label="Paramétrage" action="page2?faces-redirect=true;" render="panelParamGeneral,tittlePage" >
            <f:param name="menuitem" value="PAGE_GESTION_PARAM_UCD" />
            </rich:panelMenuItem>
            
            
            
            
            

             

            in page 2, there is a viewscope backingbean : bean1 :

            @PostConstruct
                public void init(){
                 System.out.println(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("menuitem"));
            }
            
            

             

            after some more test and google, i found the problem is faces-redirect=true; but i dont know why.