Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-553

'restoreQueryString' does not work with Jpf.NavigateTo.currentPage or Jpf.NavigateTo.previousPage

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • V1Alpha, V1Beta, v1m1
    • v1m1
    • NetUI
    • None

    Description

      Consider the following Forward annotation:

      @Jpf.Forward(name="prevAction", navigateTo=Jpf.NavigateTo.previousAction, restoreQueryString=true)

      This reruns the previous action, and restores the original query string that was on the previous action URI.

      If you try to use 'restoreQueryString' with Jpf.NavigateTo.currentPage or Jpf.NavigateTo.currentPage, you get the following error:

      The restoreQueryString attribute requires a value of Jpf.NavigateTo.previousAction for attribute navigateTo.

      This is incorrect – a page can databind to query params or depend on them in other ways. If you use 'restoreQueryString' with currentPage/previousPage, it should restore the query string from the original request for the page.

      Attachments

        Activity

          People

            jzhuo Julie Zhuo
            rich Richard Feit
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment