Primefaces p:selectManyCheckbox doesn't work with c:forEach and f:selectItem

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 12:56:19

问题


How to use these tags together as now they don't work:

<p:scrollPanel mode="native" style="height: 200px;">
    <p:selectManyCheckbox id="groups" value="#{myBean.selectedGroups}" layout="custom" >
        <c:forEach items="#{myBean.myGroups}" var="group" >
            <f:selectItem itemValue="#{group.id}" itemLabel="#{group.name}"/>
        </c:forEach>
    </p:selectManyCheckbox>
</p:scrollPanel>

I want to do this to put each <f:selectItem/> inside of the <li></li> later.

Additional details: xmlns:c="http://java.sun.com/jsp/jstl/core", PrimeFaces version 3.4.1.

来源:https://stackoverflow.com/questions/31917758/primefaces-pselectmanycheckbox-doesnt-work-with-cforeach-and-fselectitem

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!