I have the following selectOneMenu
<h:selectOneMenu styleClass="classA classB"
id="listID"
required="true" requiredMessage="Required"
value="#{model.selected}"
effect="fade"
hideNoSelectionOption="true"
disabled="#{empty model.list}">
<f:selectItem itemValue="#{null}" itemLabel="#{null}" noSelectionOption="true" />
<f:selectItems value="#{model.list}"/>
<p:ajax event="change" process="@this" update="listID msgList" />
</h:selectOneMenu>
Is it possible to display 2 lines for each element, one containing the name and the other containing the description? 2 Lines for a single selectable item.
I tried to concatenate '\n' '&010;' '&013;' 'br tag' to the string to display but nothing, apparently the carriage return doesn't work on the option tag (selectItems)
Is it possible to do this?
Thanks in advance