Thursday, December 22, 2011

Associating JSP Editor for the .xhtml extension in Eclipse

To use the eclipse JSP editor for editing .xhtml files (created for JSF), go to Window > Preferences > General > Content Type > Text > JSP and add *.xhtml in the File Associations section.
With this extension added, you shall be able to see the available tags & attribute listing for the JSF tags too.