我有一个名为时间表的二维数组,它存储一周中的日期和小时数。如何为p:selectBooleanCheckbox
value 属性提供表达式以设置/获取时间表值。
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:p="http://primefaces.prime.com.tr/ui">
<h:panelGrid columns="24">
<c:forEach begin="0" end="6" varStatus="day">
<c:forEach begin="0" end="23" varStatus="hour">
<p:selectBooleanCheckbox value="...">
<p:ajax listener="#{windowsLogonHours.selectHour(day.count - 1, hour.count - 1)}" />
</p:selectBooleanCheckbox>
</c:forEach>
</c:forEach>
</h:panelGrid>
</ui:composition>