JSF 2.0 Using Eclipse?

I am using JSF 2.0 with eclipse 3.4 and Tomcat6. For Facelets, I need to create XHTML files. Now the problem is that there is no XHTML file in eclipse. I can do this with a new one and convert it. but I encode that it doesn't show any tags in autocomplete. In the JSP file, when I write <h:, it shows all the relevant tags the same for <f:, but not in the XHTML file. Which one am I using with the new file in Eclipse, tell me how it shows all the tags that apply to <h:and to any other.

+5
source share
3 answers
  • You need Eclipse for Java EE developers (pay attention to EE >). It includes not only WTP with JSF tools, but also much more, for example, a built-in database manager, JPA help, etc.

  • Since Facelets is relatively new, there is no built-in support yet. To get AutoFill to work with Facelets files, go to Window> Preferences> General> Content Types> Text> JSP, and then add the *.xhtmlfile encoding as the association and set the default encoding to UTF-8.

    . Eclipse 3.6 Facelets. , Glassfish Jboss Tools Facelets. Jboss Tools EL bean.

+4

> > web > html > .xhtml > finish

0

All Articles