views:

54

answers:

2

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 make it using a new and convert its etension XHTML but i am coding it is not showing any tags in autocomplete. In JSP file when I write <h: it shows all relevant tags of and same for <f: but not in XHTML file. Which one I make using new file in Eclipse please tell me how it show also all tags which relevant to <h: and any other.

A: 

Are you using the wtp-plugin: http://www.eclipse.org/webtools/?

hackbert
@hackbert please if you can tell how i can use it.
ali
Usage is actually easy - just install it via the update site and go for it! ;D
hackbert
+1  A: 
  1. You need Eclipse for Java EE developers (note the EE). It not only includes WTP with JSF tooling, but also much more, like a builtin database manager, JPA assist, etc.

  2. To get autocompletion to work for XHTML files, go to Window > Preferences > General > Content Types > Text > JSP and then add *.xhtml as file association and set default encoding to UTF-8.

BalusC
@BalusC Thanks sir.Please if it possible please write a tutorial for JSF2.0.As ou write you for JSF1.2.
ali