I have this for the users that can edit the checkboxes:
<h:selectManyCheckbox value="#{userForm.userRoles}" id="userRoles">
<f:selectItems value="#{userForm.availableRoles}"/>
</h:selectManyCheckbox>This works great. For hidden fields, I'm using:
<f:verbatim>
<c:forEach var="role" items="${userForm.userRoles}" varStatus="status">
<c:out value="${role}"/><c:if test="${!status.last}">,</c:if>
<input type="hidden" name="userForm:userRoles" value="<c:out value="${role}"/>" />
</c:forEach>
</f:verbatim>
While this works, I'd rather not have to wrap it with <f:verbatim> (for my <h:panelGrid) - is there an easier way to do this?
Thanks,
Matt

