I want to use h:link component in my xhtml file but Idea doesn’t seem to find it. I get cannot resolve symbol error. But it does find some other standard components.
I have following header at the top of the file.
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
template="/WEB-INF/templates/default.xhtml">
The project i’m working on is JavaEE6 / JBoss7 type of project. It was imported from Maven archetype. Packaging type is EAR. I have enabled JSF support and Idea has downloaded 3 JSF jars and placed them in lib directory in project root directory (not in web module as i expected).
Does anybody knows what i have to do to make it work?
I solved my problem by adding jsf jars to Maven’s pom.xml.
In my case (note that i’m running this on JBoss7 AS and these jars are already on server)
Hope it helps.