我显示一个包含在数据对象列表中的值表
<p:dataTable var="mydata" value="#{myBean.datas}>
在每个Data对象中,我都有一个布尔属性isStrikethrough。
我希望将isStrikethrough值设置为true时,对应的行应为删除线。
你能给我一些提示吗?
最佳答案
你也可以这样
<p:dataTable var="mydata" value="#{myBean.datas}>
<rich:column styleClass="#{mydata.isStrikethrough ? 'strikeClass' : 'normalTextClass'}">
</p:dataTable>
关于java - 在Java服务器界面中显示删除线数据,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22251395/