【发布时间】:2011-04-05 08:28:42
【问题描述】:
我的编辑用户屏幕中有以下代码
<h:selectManyCheckbox id="selectedGroups" value="#{usersController.selectedGroups}">
<f:selectItems value="#{usersController.groupsList}" var="item" itemLabel="#{item.groupname}" itemValue="#{item.groupid}" />
</h:selectManyCheckbox>
我有一个包含所有组的用户组列表,并且我选择了包含为用户启用的组的组列表。但是,在编辑屏幕上,默认情况下它们没有显示为选中状态。我错过了什么?这不是绑定选中的许多复选框的正确方法吗?
【问题讨论】: