Rich Panel Menu and Ajax Submit
cingram62 Jun 18, 2011 3:45 PMHi All!
I have a rich menu panel that does a rerender on a a4j:include to dynamically include a page in my application. The rich panel and include seem to be working, in that as I select the menu option the pages are rendered on the screen. The thing that doesn't seem to be working is that a full submit is bieng performed instead of just a partial render of the a4j:include. Can someone point me in the right direction?
Thanks
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j" markupType="xhtml" template="../layout/template.xhtml"> <ui:define name="body"> <rich:layout> <rich:layoutPanel position="left" width="15%" style="padding:3px;"> <a4j:form> <rich:panelMenu id="pnlMenu" iconExpandedGroup="disc" iconCollapsedGroup="disc" iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right" iconCollapsedTopGroup="chevronDown" expanded="true" selectedChild="group1" expand="group1"> <rich:panelMenuGroup label="General Information" name="group1"> <rich:panelMenuItem label="General Information"> <a4j:support event="onclick" actionListener="#{pageView.goToNewPage}" reRender="pageView"> <f:attribute name="newLink" value="./pageone.xhtml" /> </a4j:support> </rich:panelMenuItem> </rich:panelMenuGroup> <rich:panelMenuGroup label="General Info2" name="group2"> <rich:panelMenuItem label="General Info 2"> <a4j:support event="onclick" actionListener="#{pageView.goToNewPage}" reRender="pageView"> <f:attribute name="newLink" value="./pagetwo.xhtml" /> </a4j:support> </rich:panelMenuItem> </rich:panelMenuGroup> </rich:panelMenu> </a4j:form> </rich:layoutPanel> <rich:layoutPanel position="center" style="padding:3px;"> <rich:panel> <a4j:include id="pageView" viewId="#{pageView.includedPage}" /> </rich:panel> </rich:layoutPanel> </rich:layout> </ui:define> </ui:composition>