Custom tag support

Hi folks.

I'm trying to figure out whether IDEA supports the definition of JSP
custom tags in .tag files (it doesn't seem to) and whether it is a filed
request (I can't find one).

I'm trying to develop a custom tag using a .tag file in /WEB-INF/tags
and IDEA doesn't like either the or the ]]>.

I found a page:

http://www.jetbrains.com/idea/docs/help/j2ee/jsp/tagLibrariesSupport.html


describing tag libraries support however it is undated and unidentified
so I can't tell if it's current for 3.0, 4.0, 4.5,...

I also struggled to work out where on the Wiki (or ITN) the up to date
feature request list is. The best I could come up with was to query ITN:

http://www.intellij.net/tracker/idea/quickSearch?searchText=tag&daysBack=360


but I couldn't see anything about .tag files.

Anyone know the score?

Regards,

Matt

8 comments
Comment actions Permalink

Hi,

This is a part of JSP 2.0 support which will be in IDEA 5.0

Matt Mower wrote:

Hi folks.

I'm trying to figure out whether IDEA supports the definition of JSP
custom tags in .tag files (it doesn't seem to) and whether it is a filed
request (I can't find one).

I'm trying to develop a custom tag using a .tag file in /WEB-INF/tags
and IDEA doesn't like either the <tag body-content> or the <%@ taglib
tagdir%>.

I found a page:

>> http://www.jetbrains.com/idea/docs/help/j2ee/jsp/tagLibrariesSupport.html


describing tag libraries support however it is undated and unidentified
so I can't tell if it's current for 3.0, 4.0, 4.5,...

I also struggled to work out where on the Wiki (or ITN) the up to date
feature request list is. The best I could come up with was to query ITN:

>> http://www.intellij.net/tracker/idea/quickSearch?searchText=tag&daysBack=360
>>


but I couldn't see anything about .tag files.

Anyone know the score?

Regards,

Matt



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

0
Comment actions Permalink

Maxim Mossienko wrote:

This is a part of JSP 2.0 support which will be in IDEA 5.0


Thanks Maxim.

Is it described anywhere what is meant by "JSP2.0 support"? I ask so
that I don't end up asking this question again about some other feature.

Regards,

Matt

0
Comment actions Permalink

Hi,
- http://www.intellij.net/tracker/idea/viewSCR?publicId=14990
http://www.intellij.net/tracker/idea/viewSCR?publicId=5124
- JSP2.0 spec of course

Matt Mower wrote:

Maxim Mossienko wrote:

>> This is a part of JSP 2.0 support which will be in IDEA 5.0
>>


Thanks Maxim.

Is it described anywhere what is meant by "JSP2.0 support"? I ask so
that I don't end up asking this question again about some other feature.

Regards,

Matt



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

0
Comment actions Permalink

Hi Maxim,

Maxim Mossienko wrote:

Hi,
- http://www.intellij.net/tracker/idea/viewSCR?publicId=14990
http://www.intellij.net/tracker/idea/viewSCR?publicId=5124
- JSP2.0 spec of course


Thanks again for the info.

Something I am still trying to understand is whether support for custom
(i.e. non-JSTL) tag libraries in WebModules is already in, or part of
upcoming JSP2.0 support work.

I have created a tag library but, although IDEA accepts the URI, the tag
names are marked with "Cannot resolve tag" errors. Looking back through
the history of this group I can see this issue coming up numerous times
but I can't tell what the current state of play is.

Should this work?

My tag library is packaged as an archive with a TLD in META-INF. My JSP
container (Jetty) is happily using the tags. I even tried creating an
external resource mapping from the URI in the TLD file to a copy of the
TLD on disk.

Should custom tags be recognized by IDEA? If so, what step am I missing
to make it recognize them & their attributes?

Regards,

Matt

0
Comment actions Permalink

Hi,
The simple TLDs should works, please, post the tiny project illustrating
your problem.

Matt Mower wrote:

Hi Maxim,

Maxim Mossienko wrote:

>> Hi,
>> - http://www.intellij.net/tracker/idea/viewSCR?publicId=14990
>> http://www.intellij.net/tracker/idea/viewSCR?publicId=5124
>> - JSP2.0 spec of course
>>


Thanks again for the info.

Something I am still trying to understand is whether support for custom
(i.e. non-JSTL) tag libraries in WebModules is already in, or part of
upcoming JSP2.0 support work.

I have created a tag library but, although IDEA accepts the URI, the tag
names are marked with "Cannot resolve tag" errors. Looking back through
the history of this group I can see this issue coming up numerous times
but I can't tell what the current state of play is.

Should this work?

My tag library is packaged as an archive with a TLD in META-INF. My JSP
container (Jetty) is happily using the tags. I even tried creating an
external resource mapping from the URI in the TLD file to a copy of the
TLD on disk.

Should custom tags be recognized by IDEA? If so, what step am I missing
to make it recognize them & their attributes?

Regards,

Matt



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

0
Comment actions Permalink

Hi Maxim,

Maxim Mossienko wrote:

The simple TLDs should works, please, post the tiny project illustrating
your problem.


Today I had a chance to create a new sample project and verify that the
problem is consistent.

The steps I took were:

1) Create new project (JDK1.4.2_05, 2.4 descriptor)
2) Create single WebModule
3) Add module library pointing at the Jar file for my tag library
4) Create test.jsp
5) Reference tag library <%@ taglib prefix='dd' uri='ddtaglib'%>
No error, uri is accepted
6) Use tag <dd:title subtitle="xyz"/>
Cannot resolve tag 'title'
Cannot resolve symbol subtitle="xyz"
Invalid attribute "subtitle"

I've attached a .zip file which contains the testtaglibs project and my
ddtags.jar containing my custom tags.

Please let me know what else I can do.

Regards,

Matt



Attachment(s):
testtaglib.zip
0
Comment actions Permalink

Hi everybody,

I'm an IntelliJ Idea customer.

I've got the same problem, but my tags works even if IntelliJ Idea IDE (Version 5, early updated) sign them in red like errors.

Any idea on standard custom tag support without this strange behaviour?
I debug tons of jsp, and it will be useful to remove this false error warning.

This topic seem fairly static with no answers.

Best Regards,
Alex

0
Comment actions Permalink

Most probably your tld files are not found, if you are using web module
then, please, ensure that you have setup web resource directory that
contains them (if they are not in jar files).

Alex wrote:

Hi everybody,

I'm an IntelliJ Idea customer.

I've got the same problem, but my tags works even if IntelliJ Idea IDE (Version 5, early updated) sign them in red like errors.

Any idea on standard custom tag support without this strange behaviour?
I debug tons of jsp, and it will be useful to remove this false error warning.

This topic seem fairly static with no answers.

Best Regards,
Alex



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

0

Please sign in to leave a comment.