[SCALES-21] PrettyUrlRequestWrapper pathInfo & servletPath Created: 12/Dec/08  Updated: 01/Feb/09

Status: Open
Project: scales
Component/s: components
Affects Version/s: 1.1
Fix Version/s: 1.1

Type: Bug Priority: Critical
Reporter: fabmars Assignee: Jason Lee
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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.


 Comments   
Comment by fabmars [ 12/Dec/08 ]

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."

Comment by Jason Lee [ 01/Feb/09 ]

Accepting issue. Targeting for 1.1.

Generated at Tue Feb 28 13:00:52 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.