我正在嘗試使用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