scales
  1. scales
  2. SCALES-21

PrettyUrlRequestWrapper pathInfo & servletPath

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1
    • Component/s: components
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      21

      Description

      In the rendered pages using PrettyUrlPhaseListener, on links (h:outputLink),
      urls are not not well formed.

      For example this page, with public/blogList.xhtml=/blog/id/#

      {blogView.id}

      On this page I have a sign-in link: <h:commandLink action="customerLogin"
      value="Sign in"/>, and "customerLogin" is just pointing at some navigation rule.

      When I click on it, I get an error: "The requested resource
      (/<Context>/blog/secure/customerLogin.jsf) is not available."
      Actally the URL to reach should be /<Context>/secure/customerLogin.jsf

      That led me to wonder whether the PrettyUrlRequestWrapper gives errroneous
      servletPath.

      I tried with this:
      @Override
      public String getPathInfo()

      { return null; }

      @Override
      public String getServletPath()

      { return viewId; }

      AND for that you have to replace .xhtml/.jsp by .jsf in your web.xml mappings...

      So ok I made it to work the way I wanted with the RI. But I'm not sure whether

      • it's actually a bug or if i'm trying to get too much out of the component.
      • it would be the same with MyFaces. I haven't tested.

        Activity

        fabmars created issue -
        Hide
        fabmars added a comment -

        In the first sentence, pelase read instead:
        "In the rendered pages using PrettyUrlPhaseListener, on links
        (h:commandLink/h:commandButton), urls are not not well formed."

        Show
        fabmars added a comment - In the first sentence, pelase read instead: "In the rendered pages using PrettyUrlPhaseListener, on links (h:commandLink/h:commandButton), urls are not not well formed."
        Hide
        Jason Lee added a comment -

        Accepting issue. Targeting for 1.1.

        Show
        Jason Lee added a comment - Accepting issue. Targeting for 1.1.
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 21 19455

          People

          • Assignee:
            Jason Lee
            Reporter:
            fabmars
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: