0
我試圖使複合部件作爲Primefaces號碼:柱:/resources/ezcomp/columnBd_1.xhtml:頭不會出現在PrimeFaces號碼:柱,當在複合部件
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns= "http://www.w3.org/1999/xhtml"
xmlns:h= "http://java.sun.com/jsf/html"
xmlns:cc="http://java.sun.com/jsf/composite"
xmlns:p= "http://primefaces.org/ui">
<!-- INTERFACE -->
<cc:interface componentType="org.primefaces.component.Column" preferred="true" shortDescription="Extended Datatable">
<cc:attribute name="header"/>
<cc:attribute name="value"/>
</cc:interface>
<!-- IMPLEMENTATION -->
<cc:implementation>
<cc:actionSource name="#{component}">
<p:column headerText="#{cc.attrs.header}">
<h:outputText value="#{cc.attrs.value}"/>
</p:column>
</cc:actionSource>
</cc:implementation>
</html>
當我在裏面使用它:dataTable:
<ez:columnBd_1 header="#{msg.colPriceCloseBid}" value="#{row.closeBid}"/>
我有一列填充值,但沒有標題文本。 除了使用標籤文件以外的任何建議?
我試過這個。不幸的是效果是一樣的 - 沒有標題出現。 – Zbyszek 2012-08-03 19:09:49