我在我的编辑用户屏幕下面的代码如何使用JSF中的复选框列表绑定数据?
<h:selectManyCheckbox id="selectedGroups" value="#{usersController.selectedGroups}">
<f:selectItems value="#{usersController.groupsList}" var="item" itemLabel="#{item.groupname}" itemValue="#{item.groupid}" />
</h:selectManyCheckbox>
我已经在它所有的组用户组名单,我已经与为用户启用组selectedGroups列表。但是,在编辑屏幕上,它们并未默认显示。我错过了什么?这是不是绑定选定的许多复选框的正确方法?