Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JSP: Tag library Intellisense problem in Eclipse 3.6 Helios
JSP: Tag library Intellisense problem in Eclipse 3.6 Helios [message #666566] Wed, 20 April 2011 23:04 Go to next message
Sayem Ahmed is currently offline Sayem Ahmed
Messages: 4
Registered: April 2011
Junior Member
Hi, I am trying to develop a JSP application using Eclipse 3.6 Helios. Now I have defined a Tag Library Definition called DiceFunctions.tld inside the WEB-INF folder, and then declared this in a jsp page like this -

 <%@taglib prefix="mine" uri="DiceFunctions"%> 


When I write an EL function call inside that JSP, I don't get any auto-complete/intellisense for the prefix mine, which means if I add 10-20 tag libraries in a page, then I will have to remember each one of their names so that I can call their methods. Also the method signature's auto-complete isn't working properly, I mean when I type -

 ${mine: } 


the IDE sometimes doesn't provide any suggestions for the functions defined inside that TLD. I need eclipse to provide intellisense for the tag library prefixes that I define and also for the functions defined within those TLDs. Also I couldn't find any way to create Tag Library Descriptor files (.tld) in eclipse. I had to create a general file and rename it so that it's extension becomes .tld.

Is there any way to modify eclipse to achieve those supports ? Is there a plugin which will be helpful ?

[Updated on: Wed, 20 April 2011 23:50]

Report message to a moderator

Re: JSP: Tag library Intellisense problem in Eclipse 3.6 Helios [message #666730 is a reply to message #666566] Thu, 21 April 2011 21:45 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2229
Registered: July 2009
Senior Member
sometimes? I think you need to open a bug report once you're sure you're not being told that it can't find that tag library.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: JSP: Tag library Intellisense problem in Eclipse 3.6 Helios [message #666742 is a reply to message #666730] Fri, 22 April 2011 02:30 Go to previous messageGo to next message
Sayem Ahmed is currently offline Sayem Ahmed
Messages: 4
Registered: April 2011
Junior Member
Hi, thanks for your reply. One of my problems is solved and now it is showing them appropriately. I want to know if there is any way to declare Tag Library Descriptors with Eclipse. Right now I am creating an XML file and renaming it so that it has a .tld extension. I just want to know if there is any other way to do that.

Also, the JSTL tag's intellisense is working nicely, but it also would have been nice if eclipse also displays intellisense for the tag's attributes. Is it possible?
Re: JSP: Tag library Intellisense problem in Eclipse 3.6 Helios [message #666779 is a reply to message #666742] Fri, 22 April 2011 08:36 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3120
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.04.22 0:30, Sayem Ahmed wrote:
> Hi, thanks for your reply. One of my problems is solved and now it is
> showing them appropriately. I want to know if there is any way to
> declare Tag Library Descriptors with Eclipse. Right now I am creating an
> XML file and renaming it so that it has a .tld extension. I just want to
> know if there is any other way to do that.
>
> Also, the JSTL tag's intellisense is working nicely, but it also would
> have been nice if eclipse also displays intellisense for the tag's
> attributes. Is it possible?

(By the way, what's called "Intellisense" in Microsoft Visual Studio is
formally known as "Content Assist" in Eclipse--not important, just
saying in case you were looking around in Eclipse documentation.)
Re: JSP: Tag library Intellisense problem in Eclipse 3.6 Helios [message #666829 is a reply to message #666742] Fri, 22 April 2011 16:15 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2229
Registered: July 2009
Senior Member
On 4/22/2011 2:30 AM, Sayem Ahmed wrote:
> Hi, thanks for your reply. One of my problems is solved and now it is
> showing them appropriately. I want to know if there is any way to
> declare Tag Library Descriptors with Eclipse. Right now I am creating an
> XML file and renaming it so that it has a .tld extension. I just want to
> know if there is any other way to do that.

No, there's no dedicated wizard for them the way there is for simple tag
files. Someone could always file an RFE, though.

> Also, the JSTL tag's intellisense is working nicely, but it also would
> have been nice if eclipse also displays intellisense for the tag's
> attributes. Is it possible?

It should already be giving you help for the attributes, but for their
attribute values the TLD just does/can not contain enough useful
information.

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:getting started with adding custom library support to JSDT
Next Topic:pagecode sync
Goto Forum:
  


Current Time: Tue Jul 22 13:43:58 EDT 2014

Powered by FUDForum. Page generated in 0.01599 seconds