EL-error, what to do?

This is a discussion on EL-error, what to do? within the J2EE forums in Framework and Interface Programming category; 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....

Go Back   Application Development Forum > Framework and Interface Programming > J2EE

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-29-2008, 11:57 AM
geofrank
Guest
 
Default 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.
Reply With Quote
  #2  
Old 01-29-2008, 12:25 PM
Thibaut
Guest
 
Default Re: EL-error, what to do?

this might be relevant http://www.intellij.net/forums/threa...sageID=5202895

is your "t:dataList" a custom tag ?
Reply With Quote
  #3  
Old 01-29-2008, 12:40 PM
geofrank
Guest
 
Default Re: EL-error, what to do?

It's Apache Tomahawk. So it's probably just missing information from their tld.
Reply With Quote
  #4  
Old 01-29-2008, 12:42 PM
Maxim Mossienko (JetBrains)
Guest
 
Default Re: EL-error, what to do?

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!"
Reply With Quote
  #5  
Old 01-29-2008, 12:46 PM
geofrank
Guest
 
Default Re: EL-error, what to do?

Do you have any pointers as to how I can modify the tld-file to provide this validation information?
Reply With Quote
  #6  
Old 01-29-2008, 12:52 PM
geofrank
Guest
 
Default Re: EL-error, what to do?

But isn't this a problem with Tomahawk's tld?
Reply With Quote
  #7  
Old 01-29-2008, 01:02 PM
Thibaut
Guest
 
Default Re: EL-error, what to do?

if this isn't an IDEA isssue, this might be a good start
http://java.sun.com/j2ee/sdk_1.3/tec...ExtraInfo.html
Reply With Quote
  #8  
Old 01-29-2008, 01:05 PM
Maxim Mossienko (JetBrains)
Guest
 
Default Re: EL-error, what to do?

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!"
Reply With Quote
  #9  
Old 01-29-2008, 01:26 PM
geofrank
Guest
 
Default Re: EL-error, what to do?

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?
Reply With Quote
  #10  
Old 01-29-2008, 01:27 PM
Thibaut
Guest
 
Default Re: EL-error, what to do?

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
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:23 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.