开发者

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

开发者 https://www.devze.com 2023-03-25 18:26 出处:网络
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.

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 featur开发者_运维问答e (Netbeans is having similar feature) but I am missing something.

Please anyone tell me what I am missing.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号