1

I would like change the f:selectItems of a line to many lines as in the picture (line break).

enter image description here

This is my code

<h:selectManyCheckbox value="#{myBean.list}">
    <f:selectItems value="#{myBean.optionsList}" var="user" itemLabel="#{user.id} - #{user.name}&nbsp;#{user.lastname}" itemValue="#{user}"/>
</h:selectManyCheckbox>
Mr Lister
  • 45,515
  • 15
  • 108
  • 150
  • That's the task of the `layout` attribute associated with [``](https://javaserverfaces.java.net/nonav/docs/2.2/vdldocs/facelets/h/selectManyCheckbox.html). It supports two types of layouts, `lineDirection` (default) and `pageDirection`. "*Orientation of the options list to be created. Valid values are "pageDirection" (list is laid out vertically), or "lineDirection" (list is laid out horizontally). **If not specified, the default value is "lineDirection".***" – Tiny Oct 06 '16 at 06:18

0 Answers0