2 Replies Latest reply on Dec 18, 2008 9:53 AM by booroo

    a4j:include navigation-rule problem

    booroo

      Hi,

      I have a modalPanel with 2 buttons. One action (action="goNext") goes to the next step in the modalPanel, like a wizard. The other action (action="searchCandidates") should jump out of the modal panel to another page (rectifyAcqSingle.jsp). But this doesn't work. Following exception will be thrown:



      javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.IllegalStateException
       org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
       org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
       org.apache.jsp.rectifyAcq_jsp._jspService(rectifyAcq_jsp.java:187)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)





      I think the problem ist the navigation-rule but i can't find the solution.
      All pages are in the same directory.
      Does anybody have an ideal what i'm doing wrong?

      Many thanks! Cheers Boris





      rectifyAcq.jsp
      
       ..........
       <rich:modalPanel id="rectifyPopup"
       autosized="true" shadowOpacity="0">
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="#{mbCodes.acqSingleTransaction} #{mbCodes.editing}" />
       </h:panelGroup>
       </f:facet>
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage value="/images/layout/close.png"
       style="cursor:pointer" id="hidelinkEdit" />
       <rich:componentControl for="rectifyPopup" attachTo="hidelinkEdit"
       operation="hide" event="onclick" />
       </h:panelGroup>
       </f:facet>
      
       <a4j:outputPanel id="view" >
       <h:form>
       <a4j:include viewId="/wizardRectify1.jsp" layout="block" rendered="true" />
       </h:form>
       </a4j:outputPanel>
       </rich:modalPanel>
       .............
      


      wizardRectify1.jsp
      ..........
       <rich:panel id="subPanelWithCandidate"
       onmouseover="document.getElementById(this.id).style.background='#F1F1F1'"
       onmouseout="document.getElementById(this.id).style.background='#fff'"
       style="height:180px;width:270px;">
       <f:facet name="header">
       <h:outputLabel value="#{mbCodes.rectifyWithCandidate}" />
       </f:facet>
       <!-- Rectify with candidate -->
       <h:outputText value="#{mbCodes.rectifyPopUpInfo1}" />
       <h:selectManyCheckbox
       value="#{rectifyController.selectedOptionsWithCandidate}"
       id="checkboxOptions" layout="pageDirection">
       <f:selectItems value="#{rectifyController.allOptionsWithCandidate}" />
       </h:selectManyCheckbox>
       <rich:spacer height="20px" />
       <a4j:commandButton value="#{mbCodes.searching}"
       actionListener="#{rectifyController.rectifyAcqWithCandidate}"
       action="searchCandidates"
       ajaxSingle="false"
       onclick="Richfaces.hideModalPanel('rectifyPopup');" />
       </rich:panel>
       <rich:panel id="subPanelWithoutCandidate"
       onmouseover="document.getElementById(this.id).style.background='#F1F1F1'"
       onmouseout="document.getElementById(this.id).style.background='#fff'"
       style="height:136px;width:270px;">
       <f:facet name="header">
       <h:outputLabel value="#{mbCodes.rectifyWithoutCandidate}" />
       </f:facet>
       <h:selectOneRadio id="radioOptions" layout="pageDirection"
       value="#{rectifyController.selectedAcqOptionWithoutCandidate}">
       <f:selectItems
       value="#{rectifyController.allAcqOptionsWithoutCandidate}" />
       </h:selectOneRadio>
       <a4j:commandButton value="#{mbCodes.run}" action="goNext"
       reRender="view"
       actionListener="#{rectifyController.prepareAcqRectifyWithoutCandidate}" />
       </rich:panel>
       ..........
      


      faces-config.xml
      ..........
      <navigation-rule>
       <from-view-id>/wizardRectify1.jsp</from-view-id>
       <navigation-case>
       <from-outcome>goNext</from-outcome>
       <to-view-id>/wizardRectify2.jsp</to-view-id>
       </navigation-case>
       <navigation-case>
       <from-outcome>searchCandidates</from-outcome>
       <to-view-id>/rectifyAcqSingle.jsp</to-view-id>
       </navigation-case>
       </navigation-rule>
       ..........