[英]Is it possible to add Row headers to a JSF or PrimeFaces datatable?
Maybe this is what you are looking for: 也许这就是您想要的:
<f:facet name="header">
Row Header Example
</f:facet>
Here is the complete example: Primefaces showcase - DataTable - Group 1 这是完整的示例:Primefaces展示柜-DataTable-组1
I think you want something like a horizontal header, a don't think primefaces has it, but you can change the style of first cell like this: 我认为您想要类似水平标题的东西,不要认为primefaces有它,但是您可以像这样更改第一个单元格的样式:
<p:column headerText="Id">
<h:outputText value="#{car.id}" styleClass="someCssClass" />
</p:column>
h:column
标记具有一个名为rowHeader
的属性, rowHeader
您的需求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.