I have the following setup and problem. In very simple terms I have a page which includes another page which I want to be the first of a set of pages to navigate like a wizard but all within the initial including page.
<
%--Main page--%> <f:view> <h:form> <a4j:include viewId="/web/page1.jsp" /> <h:commandButton value="Home" action="home" /> </h:form> </f:view>
<h:outputText value="Page1" /> <a4j:commandButton value="Next" action="next"/>
<h:outputText value="Page2" /> <h:outputText value="Other details relating to page 2..." /> <a4j:commandButton value="Back" action="back" />
<navigation-rule> <from-view-id>/web/page1.jsp</from-view-id> <navigation-case> <from-outcome>next</from-outcome> <to-view-id>/web/page2.jsp</to-view-id> </navigation-case> </navigation-rule> <navigation-rule> <from-view-id>/web/page2.jsp</from-view-id> <navigation-case> <from-outcome>back</from-outcome> <to-view-id>/web/page1.jsp</to-view-id> </navigation-case> </navigation-rule> <navigation-rule> <from-view-id>/web/*</from-view-id> <navigation-case> <from-outcome>home</from-outcome> <to-view-id>/web/home.jsp</to-view-id> </navigation-case> </navigation-rule>
Yet another unresponded question, it'll soon be time to give up on this forum.