Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: rogerk
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

ResourceELResolver does not encode the URL with ExternalContext.encodeResourceURL()

Created: 26/May/11 10:56 AM   Updated: 17/Dec/13 03:21 PM
Component/s: None
Affects Version/s: 2.2 Sprint 8
Fix Version/s: 2.3

Time Tracking:
Not Specified

File Attachments: 1. Text File SPEC-1011-ResourceELResolver.patch (2 kB) 15/Jun/11 02:27 AM - Hanspeter Duennenberger

Participants: Hanspeter Duennenberger and rogerk

 Description  « Hide

The getValue() method says:

  • If one of the above steps resulted in the creation of a {@link Resource}
  • instance, call <code>ELContext.setPropertyResolved(true)</code> and return
  • the result of {@link javax.faces.application.Resource#getRequestPath()}

Taken from:

Hanspeter Duennenberger added a comment - 15/Jun/11 02:27 AM

Hi Ed.

Here an updated patch for this ResourceELResolver issue.

Actually I opened this issue as a mojarra impl bug, but Roger has closed JAVASERVERFACES-1878 and created this one instead.

I'm not sure if that is right - I mean, if ResourceELResolver is affecting the spec, why is it then not in package javax.faces.el? Or is resource handling subject to bigger change for JSF 2.2?

Anyway, the attached patch contains the changes to fix this issue and a little correction in javadoc.