我正在尝试使用PrimeFaces 3.2。我正在使用Eclipse Indigo SR2。我正在使用PrimeFaces标签创建一个JSP页面。标准<h:commandButton>
正在工作,但<p:commandButton>
不起作用。如何在Eclipse Indigo SR2中使用PrimeFaces 3.2?
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:p="http://primefaces.org/ui">
<head>
</head>
<body>
<f:view>
<h:form>
<h:commandButton value="Click"></h:commandButton>
<p:commandButton value="shfgldjfkl"></p:commandButton>
</h:form>
</f:view>
</body>
</html>
我的输出是这样的:
当我采取了JSF XHTML页面中靛蓝服务发布2,然后我的代码没有运行我的页面是空白的。
我该如何使用PrimeFaces 3.2?
看看这个:http://www.mkyong.com/jsf2/primefaces/primefaces-hello-world-example/不是行家,你可以把德的jar放到lib文件夹,并添加他们到您的构建路径 – Daniel
当采取截图时,请尝试只裁剪*相关*片。有没有在你的问题围绕着唯一的按钮,一个巨大的空白这是相当荒谬的。 – BalusC