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
Please sign in to leave a comment.
this might be relevant http://www.intellij.net/forums/thread.jspa?messageID=5202895
is your "t:dataList" a custom tag ?
It's Apache Tomahawk. So it's probably just missing information from their tld.
Do you have any pointers as to how I can modify the tld-file to provide this validation information?
Please, create JIRA request
geofrank wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
But isn't this a problem with Tomahawk's tld?
if this isn't an IDEA isssue, this might be a good start
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/jsp/tagext/TagExtraInfo.html
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:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
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?
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
geofrank wrote:
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!"
This still defines java scripting variable but, indead, it is easier to
use :)
Thibaut wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
That variable-tag did it for me. Thanks to both of you for helpful information!