Beehive
  1. Beehive
  2. BEEHIVE-767

"navigateTo" current page does not work with tiles

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: v1m1
    • Fix Version/s: None
    • Component/s: NetUI
    • Labels:
      None

      Description

      The use of navigateTo=Jpf.NavigateTo.currentPage and previous page
      does not work with tiles. In some cases we forward to a path that
      should be the name of a tiles definition but fails because the path
      created is missing a slash ('/'). In another case, NoPreviousPageException
      is thrown.

      I will add a zip file with the repro.

      Throwable: org.apache.beehive.netui.pageflow.NoPreviousPageException: No relevant page for return-to="currentPage" on action toggleNotes in page flow /tilesbug/MainFlow.jpf.
      Stack Trace:
      org.apache.beehive.netui.pageflow.NoPreviousPageException: No relevant page for return-to="currentPage" on action toggleNotes in page flow /tilesbug/MainFlow.jpf.
      at org.apache.beehive.netui.pageflow.internal.DefaultActionForwardHandler.doReturnToPage(DefaultActionForwardHandler.java:266)
      at org.apache.beehive.netui.pageflow.internal.DefaultActionForwardHandler.doForward(DefaultActionForwardHandler.java:141)
      at org.apache.beehive.netui.pageflow.FlowController.forwardTo(FlowController.java:491)
      at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:428)
      at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:306)
      at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:48)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:109)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:1979)
      at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:90)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2048)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:592)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:856)
      at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:600)
      at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:163)
      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      at org.apache.beehive.netui.pageflow.internal.DefaultForwardRedirectHandler.forward(DefaultForwardRedirectHandler.java:127)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1755)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processSharedFlowMapping(PageFlowRequestProcessor.java:1378)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processMapping(PageFlowRequestProcessor.java:1205)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:193)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:592)
      at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:856)
      at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:600)
      at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:163)
      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      1. j767repro.zip
        10 kB
        Carlin Rogers

        Activity

        Carlin Rogers created issue -
        Hide
        Carlin Rogers added a comment -

        This page flow will reproduce the error. To repro...

        • place this page flow in a netui app
        • build the app and deploy
        • go to the MainFlow.jpf of this page flow.
        • click on the "show notes" and then "hide notes" on the menu bar
          as you hit some of the other pages in the flow.

        The toggling show/hide notes action is in the shared flow and uses
        navigateTo=Jpf.NavigateTo.currentPage.

        Show
        Carlin Rogers added a comment - This page flow will reproduce the error. To repro... place this page flow in a netui app build the app and deploy go to the MainFlow.jpf of this page flow. click on the "show notes" and then "hide notes" on the menu bar as you hit some of the other pages in the flow. The toggling show/hide notes action is in the shared flow and uses navigateTo=Jpf.NavigateTo.currentPage.
        Carlin Rogers made changes -
        Field Original Value New Value
        Attachment j767repro.zip [ 20241 ]

          People

          • Assignee:
            Carlin Rogers
            Reporter:
            Carlin Rogers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development