History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-4737
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Maxim Mossienko
Reporter: Maxim Mossienko
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

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

Created: 16 Feb 06 16:22   Updated: 16 Feb 06 18:44
Component/s: J2EE.JSP
Fix Version/s: 5.1.1, Demetra 5162

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Fixed in build: 5,154


 Description  « Hide
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)
    Unknown macro: { 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. ) }; }

    }
    ...
    }


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.