Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Works as designed
    • Affects Version/s: 6.0.8
    • Fix Version/s: None
    • Component/s: doc
    • Labels:
      None

      Description

      The guessnumber example (http://docs.oracle.com/javaee/6/tutorial/doc/gipob.html) displays http://localhost:8080/guessnumber/faces/greeting.xhtml in the address bar of my browser when I'm on the response.xhtml page and http://localhost:8080/guessnumber/faces/response.xhtml when I go "Back" to the greeting.xhtml page.

      I don't know all the possible ways of correcting this, but one that works for me is changing action="greeting" to action="greeting?faces-redirect=true" in the response.xhtml File.

        Activity

        Hide
        swiss-chris added a comment -

        The same happens in the bookmarks/ application.

        Show
        swiss-chris added a comment - The same happens in the bookmarks/ application.
        Hide
        Kim Haase added a comment -

        The fact that a displayed URL always lags behind the displayed page is a result of the fact that Facelets uses POST rather than GET. If you force a redirect, this causes more server resources to be used and, in complex applications, may lead to erroneous results.

        Show
        Kim Haase added a comment - The fact that a displayed URL always lags behind the displayed page is a result of the fact that Facelets uses POST rather than GET. If you force a redirect, this causes more server resources to be used and, in complex applications, may lead to erroneous results.

          People

          • Assignee:
            Unassigned
            Reporter:
            swiss-chris
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 5 minutes
              5m
              Remaining:
              Remaining Estimate - 5 minutes
              5m
              Logged:
              Time Spent - Not Specified
              Not Specified