This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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".