简体   繁体   English

是否可以不在primefaces数据表中呈现标题行?

[英]Is it possible not to render the header line in a primefaces datatable?

We are looking for a way not to render the header of a datatable, but just the content. 我们正在寻找一种方法,而不是呈现数据表的标题,而只是呈现内容。 Any suggestions? 有什么建议么?

I used this workaround/hack in one of my projects: 我在我的一个项目中使用了此变通办法/ hack:

<p:dataTable value="#{myBean.myValue}" 
             var="item"
             ...>
  <p:column rendered="#{!empty item }">
    ..
  </p:column>
  ..
</p:dataTable>

I remember some issues with cell borders. 我记得一些细胞边界问题。 But you should give it a try. 但是您应该尝试一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM