History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-12512
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Raymond DeCampo
Votes: 0
Watchers: 1
Operations

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

href and image src attributes incorrectly labelled invalid

Created: 08 Dec 06 23:44   Updated: 11 Dec 06 17:00
Component/s: Editor. Error Highlighting
Fix Version/s: Demetra 6.0.3, Selena 6656

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Windows 2000

Build: 6,107
Fixed in build: 6,594
Severity: Low


 Description  « Hide
In a facelets project we use the following code to create links or source images within an XHTML file:

<img src="#{facesContext.externalContext.requestContextPath}/images/blah.gif"/>

IDEA incorrectly reports "Cannot resolve symbol..." even though the file exists in the correct location. The same issue happens with href in anchor tags.

I understand the difficulty in generic parsing of EL expressions within tags like this but perhaps the #{facesContext.externalContext.requestContextPath} idiom could be handled specially as it is common.



 All   Comments   Work Log   Change History      Sort Order:
Maxim Mossienko - 09 Dec 06 00:05
Have you mapped xhtml extension to JSPX file type?

Raymond DeCampo - 09 Dec 06 00:10
Yes; I unmapped .xhtml from XHTML and assigned it to the JSPX file type.

Other things are working without issue, just this aspect.


Taras Tielkes - 09 Dec 06 00:31
Sounds similar to (but different from): IDEADEV-7073

Taras Tielkes - 11 Dec 06 16:25
Does this fix for this provide completion after the #{facesContext.externalContext.requestContextPath} part?
In other words: does the editor understand that #{facesContext.externalContext.requestContextPath} maps to the context root?

If so, then adding similar support for the non-JSF variant ${pageContext.request.contextPath} would be a first step to the fix for IDEADEV-7073


Maxim Mossienko - 11 Dec 06 17:00
No, the fix removes erroneous highlighting for {...} having been recognized as an anchor reference.