1

I am doing a JSF project in Eclipse (Helios) and I enabled the JSF facet for my project.

Code assistance (code hinting) works for the JSF tags but not for the attributes.

Say, if I type the following then the all possible tags are displayed, that is fine.

<h:

But, if I type the following and press the space bar, no code hinting for attributes appears:

<h:graphicImage

I guess that Eclipse must have this feature (Netbeans is having similar feature) but I am missing something.

Please anyone tell me what I am missing.

siva636
  • 16,109
  • 23
  • 97
  • 135
  • 1
    Related: http://stackoverflow.com/questions/6204807/how-to-see-docs-for-jsf-facelets-elements-in-eclipse/ – BalusC Aug 02 '11 at 12:14

1 Answers1

1

You need to add the TLD reference (Eg. html_basic.tld) to the Eclipse project settings. This will allow Eclipse to reference the TLD file to provide autocomplete functionality.

A better explanation of what to do can be found here:

Eclipse autocomplete (content assist) with facelets (jsf) and xhtml

Community
  • 1
  • 1
maple_shaft
  • 10,435
  • 6
  • 46
  • 74
  • Where to get the TLD files, and how to install them? (The links in the suggested thread no longer working) – siva636 Aug 03 '11 at 08:09
  • @MISS_DUKE, If a Google search can't find them on the web then you should be able to find them in the JAR files of the JSF implementation or the component libraries. (Eg. `jsf-impl.jar` has `html_basic.tld` and `jsf_core.tld`) – maple_shaft Aug 03 '11 at 11:00
  • Thanks, I have now put the tld files in the WEB-INF/tlds folder, and able to manually open the TLD files in the Eclipse IDE and refer the tags (it is really useful). But the Eclipse IDE itself is not making any hints for the tag attributed even now. What may be the reason for this? – siva636 Aug 04 '11 at 12:22