3 Replies Latest reply on Apr 3, 2009 4:56 AM by ilya_shaikovsky

    rich dropDownMenu ajax submitMode issue

    guimoz

      so guys, im using rich faces' dropDownMenu, and it was suposed to reRender an include, like this...

      <rich:dropDownMenu value="menu">
       <rich:menuGroup value="Test">
       <rich:menuItem value="Country" reRender="panelContent" actionListener="#{mbInclude.refreshPage}">
       <f:param name="page" value="/country.xhtml"/>
       </rich:menuItem>
       </rich:menuGroup>
      </rich:dropDownMenu>
      

      <ui:composition template="templates/template.xhtml">
       <ui:define name="content">
       <a4j:outputPanel ajaxRendered="true" id="panelContent">
       <ui:include src="#{mbInclude.url}" />
       <rich:spacer height="400"/>
       </a4j:outputPanel>
       </ui:define>
       </ui:composition>


      public void refreshPage(ActionEvent ev){
       FacesContext context=FacesContext.getCurrentInstance();
       setUrl((String)context.getExternalContext().getRequestParameterMap().get("page"));
       }


      basically, it controlls all content of my page, when i use ajax submitMode, it just cant reRender the include. I just got it working when i change from ajax to server submitMode.

      how can i solve it ?