jstl xmlns still red using facelets

I'm using facelets, and have an .xhtml file with the following namespace
decl:

xmlns:c="http://java.sun.com/jstl/core"

The http... part is red because IDEA can't find the .tld (because it's
using facelets class impl). But if I remove it, the tags all turn red. I
already mapped .xhtml to the jspx file type, which cleared up the jsf
tags. Is there a way to make the jstl tags work?

2 comments

Hi,

You can bind the namespace URL to tld via External Resource Manager
(Resources in Settings)

It would nice if you create JIRA item for future convenience.

Russ Egan wrote:

I'm using facelets, and have an .xhtml file with the following
namespace decl:

xmlns:c="http://java.sun.com/jstl/core"

The http... part is red because IDEA can't find the .tld (because it's
using facelets class impl). But if I remove it, the tags all turn red.
I already mapped .xhtml to the jspx file type, which cleared up the
jsf tags. Is there a way to make the jstl tags work?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Didn't open a ticket yet, because I didn't know if it was a bug.

Can't bind to tld, since one doesn't exist with Facelets. Facelets just has one of those jstl-core.taglib.xml files, which map the tags to a class I guess. IDEA seems to do some special magic with the jsf tags in facelets (apparently by including your own schema for the jsf tags), but doesn't do the same for the jstl tags.

Opened a feature request: http://www.jetbrains.net/jira/browse/IDEA-9322

Though I'm not sure how far you want to take facelets support. It appears true facelets support would involve digesting their taglib.xml files (like you do tld), which in turn would require doing whatever class introspection facelets uses to implement tags. Don't know whether that level of support is necessary (don't know how widely used Facelets is).

0

Please sign in to leave a comment.