【发布时间】:2012-08-09 04:12:29
【问题描述】:
我使用 Primefaces-3.3.1、JSF 2.1、Glassfish 3.1.2 和 IntelliJ IDEA 11.1.3 作为 IDE 尝试了 this 示例。将 PF 的 jar 添加到 WEB-INF/lib 目录并创建了“test.jsf”,我在其中放置了示例。 结果我看到空白页。 Chrome 是这样理解的:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"><head></head><body><h:head>
</h:head>
<h:body>
<p:editor>
</p:editor></h:body>
</body></html>
怎么了? 谢谢。
【问题讨论】:
-
看看这个mkyong.com/jsf2/jsf-2-0-hello-world-example
4. JSF 2.0 Serlvet Configuration -
谢谢!更改 web.xml 有帮助。
-
你还有不正确的 和 标签,去掉 标签。
标签: jsf primefaces