标题不为';在复合组件中时,t出现在PrimeFaces p:列中

标题不为';在复合组件中时,t出现在PrimeFaces p:列中,primefaces,composite-component,Primefaces,Composite Component,我尝试将复合组件制作为一个Primefaces p:column:/resources/ezcomp/columnBd_1.xhtml: <?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"> <htm

我尝试将复合组件制作为一个Primefaces p:column:/resources/ezcomp/columnBd_1.xhtml

<?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>

当我在p:dataTable中使用它时:

<ez:columnBd_1 header="#{msg.colPriceCloseBid}" value="#{row.closeBid}"/>

我有一个充满值的列,但没有标题文本。
除了使用标记文件之外,还有什么建议吗?

试着用outputText组件声明标头方面

<p:column>
  <f:facet name="header">
    <h:outputText value="#{cc.attrs.header}" />
  </f:facet>
</p:column>

我已经试过了。不幸的是效果是一样的-没有标题出现。