I am new to IntelliJ IDEA and I am having a hard time figuring out how to enable Facelets in a JSF module. It uses JSP views by default when I create it. I used eclipse so I really am not familiar on how to properly create modules in IntelliJ. I tried creating a new project > Java Module > clicked JSF and I successfully created a JSF module but it's using JSP pages instead of facelets XHTML. How can I use facelets and is there a way to create XHTML pages using context menus? Thanks.
Kristjan Toots wrote:Have you tried following this: IntelliJ JSF
Yes but it doesn't explain how to use facelets view technology. It still uses JSP instead of XHTML files.
Randal Vance Cunanan
Joined: Apr 28, 2013
Nevermind. I got it. You need to go to File > Project Settings > Facets and choose enabled. Then for creating XHTML files, right click and choose new java ee web page and select Facelets page from the "Kind".