使用 IntelliJ IDEA 13.1。 组件堆栈:JSF 2.2 + Primefaces 4.0、Tomcat 7。
用代码创建简单的 xhtml:
<ui:composition template="rootTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets">
</ui:composition>
但是 IDEA 无法获取 primefaces url 并用红色突出显示它。
浏览器在尝试加载时显示 404 错误 http://primefaces.org/ui
我做错了什么?
最佳答案
1)请务必添加框架支持
2)IDEA有时需要同步。因此使用“重新导入所有 Maven 项目”按钮。
关于java - Primefaces 4.0 的 XML 命名空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23160271/