EL-error, what to do?

Hi, I noticed a fully EL-variable give warnings in IDEA. Maybe I'm doing something wrong, please look at the attached screenshot.

If this indeed is a IDEA-error:
-Do you have to add support for every variable of that kind manually?
-Do I report such "small" bugs in the JIRA?

It certainly isn't a big matter, but it's annoying, and I don't want to turn off the error marking, because It's working great in the other cases.

Edit: I forgot to attach the picture, and can't add it in edit-mode, so here it is:
http://www.frameworked.no/el-error.jpg

12 comments
Comment actions Permalink

this might be relevant http://www.intellij.net/forums/thread.jspa?messageID=5202895

is your "t:dataList" a custom tag ?

0
Comment actions Permalink

It's Apache Tomahawk. So it's probably just missing information from their tld.

0
Comment actions Permalink

Do you have any pointers as to how I can modify the tld-file to provide this validation information?

0
Comment actions Permalink

Please, create JIRA request

geofrank wrote:

It's Apache Tomahawk. So it's probably just missing information from their tld.


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

0
Comment actions Permalink

But isn't this a problem with Tomahawk's tld?

0
Comment actions Permalink

You may specify valid TagExtraInfo class for the tag in question
While this specifies information about Java variables, IDEA's el
supports pick up this information (but e.g. variable defined via 'var'
attribute is not returned by any tag extra info)

geofrank wrote:

But isn't this a problem with Tomahawk's tld?


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

0
Comment actions Permalink

Ok, I'm not sure I understand exactly what you mean here.

Am I correct if I understand it as this:
I can define a TagExtraInfo, and that will work, but usually this is implemented directly in IDEA?

0
Comment actions Permalink

when i had looked at this, i discovered another way for tld writers to do this.

using the element in the tld like myTag aClass var .... ]]>

But i didn't see this specified for the common taglibs IIRC

0
Comment actions Permalink

geofrank wrote:

Ok, I'm not sure I understand exactly what you mean here.

Am I correct if I understand it as this:
I can define a TagExtraInfo, and that will work, but usually this is implemented directly in IDEA?


Yes, you are right, certain attribute name knowledge is built-in into IDEA.


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

0
Comment actions Permalink

This still defines java scripting variable but, indead, it is easier to
use :)

Thibaut wrote:

when i had looked at this, i discovered another way for tld writers to do this.

using the <variable> element in the tld like

<tag>
<name>myTag</name>
<tag-class>aClass</tag-class>
<variable>
<name-from-attribute>var</name-from-attribute>
</variable>
...
</tag>

But i didn't see this specified for the common taglibs IIRC



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

0
Comment actions Permalink

That variable-tag did it for me. Thanks to both of you for helpful information!

0

Please sign in to leave a comment.