views:

831

answers:

3

Hi

I recently started facelets development, and a couple of days ago made my first useful custom tag. Now I would like to have autocompletion support in eclipse, like I have for standard taglibs like h, c and ui.

Is there any easy way (less than 30 min work) to enable tool support for custom tags?

I'm using eclipse 3.4 with jboss tools.

A: 

What version of Eclipse are you using?

My current version (Version: 3.4.0, Build id: I20080617-2000, with WTP)has autocompletion for any taglib added as a directive on my JSP page (even if the current JSP file does a <%@ include file="..." %> to the actual file with the taglib declarations in it), even the non-standard ones.

For example, Eclipse will autocomplete any <form:blah> tags for me if I have the following declaration:

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
matt b
guess facelets work a little different, both in the views and in the implementation of custom tags, so I think custom facelets tags aren't automatically supported even if custom jsp tags are. But, again, I'm new with facelets and might be wrong.
Erik Itland
A: 

You can use Jboss Tools 3.0M3 or newer. About it support of custom facelets you can find information here Jboss Tools Forum

Maksim Areshkau
A: 

I have been looking for this support for a long time, but had no success =( All materials about JBoss Tools describe this opportunity, but I couldn't reproduce that myself. I tried different Eclipse versions (Helios, Galileo) with different JBossTools (3.2 and 3.1) versions. On linked videos everything seams to be easy, but I didn't get that result. It would be grate if someone response that he succeeded. Videos :

ZsergUA