JSF support and custom tags
I wonder if it is possible to give clues to IDEA about how to validate/handle custom tags.
We've made a custom JSF tag library, with some of the tags defining variables in the page context (indexes for example), and as IDEA doesn't know those tags, it currently highlights references to those in el expressions as "undefined".
I've tried to look if JSF had any way for tag library creators to give hints to tools but couldn't find anything.
Has anyone encountered this problem already ? have you found a solution to it ?
Please sign in to leave a comment.
Do you provide TagExtraInfo?
Thibaut wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
I'm pretty sure we don't, as I've never heard of it. googling for it atm :)
edit : thanks for the pointer, this is exactly what we need
Message was edited by:
Thibaut
as you seem to be knowledgeable about JSF, I have another question.
Our tag library defines its own "view" element, thus IDEA "JSF component outside view tag" is triggered for each tag.
Is there a way to specify that a tag (vcs:view in our case) is a "View" tag ?
You can switch off that inspection for now.
Thibaut wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
thanks for your input
In general some kind of more powerful, configurable "meta-information"
for tags and attributes would be very nice.
Like:
Attribute "foo" is a reference to another tag's "id".
Attribute "bar" holds style classes.
Attribute "bleep" accepts EL, but attribute "flim" doesn't.
Tag "tock" can only have children "tick", "bick" and "nick".
...
That would make working with JSF so much easier.
Maxim Mossienko (JetBrains) wrote:
>> as you seem to be knowledgeable about JSF, I have another question.
>>
>> Our tag library defines its own "view" element, thus IDEA "JSF
>> component outside view tag" is triggered for each tag.
>>
>> Is there a way to specify that a tag (vcs:view in our case) is a
>> "View" tag ?
you can do all this using the TagExtraInfo#validate method it seems