siva636
siva636

Reputation: 16441

Eclipse (with JSF) code assistance (auto code hinting) problem

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.

Upvotes: 1

Views: 625

Answers (1)

maple_shaft
maple_shaft

Reputation: 10463

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

Upvotes: 1

Related Questions