Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Maxim Mossienko 
Subsystem
J2EE.JSP 
Affected versions
Fixed in
Fixed in build
Next build 
Fixed in build
5154
  • Submitted by   Maxim Mossienko
    3 years ago (16 Feb 2006 16:22)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:27)
  • Jira: IDEA-31529
    (history, comments)

IDEA-31529

Tld highlighting is wrong when TEI class is static inner class, completion is also not available

0
There are several problems with how IDEA is reacting to this problem:
1) It does not like the '$' in <tei-class> declaration.
2) If I remove '$' from declaration and change it to <tei-class>test.SampleTag.VarExtraInfo</tei-class> then it still does not recognize the variables in JSP code (also, such declaration does not work in jboss 4.0.2)

Below are the samples from JSP page and Java JSP tag variable declarations.


Here is a copy of how we declare custom tags in our 'tld' file:
----
<tag>
<name>sampletag</name>
<tag-class>test.SampleTag</tag-class>
<tei-class>test.SampleTag$VarExtraInfo</tei-class>
<body-content>empty</body-content>

<attribute>
...
</attribute>
</tag>
----

Here is a sample of test.SampleTag$VarExtraInfo:


public class SampleTag extends TagSupport {
/**
* TODO: add file description.
*
* @author dsetrakyan
*/
public static class VarExtraInfo extends TagExtraInfo {
/**
* @see TagExtraInfo#getVariableInfo(TagData)
*/
@Override
public VariableInfo[] getVariableInfo(TagData data) {
return new VariableInfo[] {
new VariableInfo(
data.getAttributeString("var"), // Variable name.
SomeClass.class.getName(), // Variable type.
true, // Is potentially a new variable.
VariableInfo.AT_END // Scope to the end of enclosing type or end of the page.
)
};
}
}
...
}

Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments