- <h:outputText value="本地邮递"
- rendered="#{signList.ebillmode eq '0'}"></h:outputText>
- <h:outputText value="外地邮寄"
- rendered="#{signList.ebillmode eq '1'}"></h:outputText>
- <h:outputText value="面对面对账"
- rendered="#{signList.ebillmode eq '2'}"></h:outputText>
dataTable中rendered的使用
<h:dataTable var="filePayTransList" rows="#{requestFileBatchWebPaymentBean.pageSize}"
rendered="#{not empty requestFileBatchWebPaymentBean.filePayTransList}"
width="95%" headerClass="standardTable_Header"
styleClass="table" binding="#{requestFileBatchWebPaymentBean.filePayTransTable}">
<h:column id="payNo">
<f:facet name="header">
<h:outputText escape="false"
value="<div align='center'>文件序号</div>"></h:outputText>
</f:facet>
<h:outputText value="本地邮递" rendered="#{filePayTransList.filePayNo eq requestFileBatchWebPaymentBean.payResultFileNo}"></h:outputText>
</h:column>
</h:dataTable>
本文介绍了JavaServer Faces (JSF) 中DataTable组件的使用方法,重点讲解了如何利用rendered属性来控制表格中特定列的显示与隐藏。通过具体的代码示例,展示了不同场景下对表格数据进行条件渲染的技术细节。


842

被折叠的 条评论
为什么被折叠?



