How to use the built in JSP Eclipse Editor and a custom tld file to get code completion in Eclipse 3.4+ and Tapestry5

Have you been looking for a method to get "code" completion while editing *.tml files in Eclipse? This method uses a TLD file with the Eclipse JSP editor to give you exactly that.

The following are available from GitHub:

(Older versions are available here)

All steps were performed on Eclipse 3.4. (This will not work on Eclipse 3.3. The JSP Editor by default does not appear to easily support the xmlns declarations.)

TLD files have been generated by tapestry-tldgen Maven plugin ( You can also use this plugin to generate TLD associated to your own Tapestry 5 components library. Please have a look at for advanced information and usage explanation.

Regardless, this really helps out coupling Eclipse and Tapestry 5.

#-- Installing and configuring Eclipse for Tapestry 5 tml file editing.

1. Associate any *.tml file with the JSP Editor.

2. Install the TLD associated to your Tapestry 5 version ( Tag Library Definition ) and associate it with the default Tapesty 5 Name Space.

3. Install the default *.tml template in the JSP template provider:

Once all steps are completed, you can create a new *.tml file by creating a new JSP File, and selecting the TML Template.

In any location of the html block, you can get Tapestry Component completion now by starting a new tag with:

and hitting ctrl-space. A list of available components will be provided along with standard Eclipse help dialogues.

Tapestry5JSPEditorEclipse (last edited 2011-06-05 21:48:45 by BobHarner)