【发布时间】:2014-09-15 12:19:20
【问题描述】:
<h:dataTable id="merchantDataTable"
value="#{merchantManagementBean.merchants}" first="0"
rows="#{merchantManagementBean.rowsPerPage}" var="merchant"
styleClass="dataTable"
columnClasses="users-colMerchant, users-colMerchantDescr, nostyle"
rowClasses="oddRow, evenRow">
<h:column>
<f:facet name="header">
<h:panelGrid columns="1">
<h:selectBooleanCheckbox />
</h:panelGrid>
</f:facet>
<h:selectBooleanCheckbox value="#{merchant.selected}"/>
</h:column>
</h:datatable>
是的,所以我有这个代码部分,我需要制作主复选框以使它们全部选中我可以使用可能只有基于 Javascript 的解决方案,因为与 bean 的通信将转到服务器端。
【问题讨论】:
标签: javascript jsf