Issue Bug Closed

#65345Cannot set select multiple conditionally

Mathias Brodala 02/25/15, 18:20 updated 10/02/18, 11:47

Description

Currently one cannot set the multiple attribute of the SelectViewHelper conditionally like this:

<f:form.select property="foo" options="{options}" multiple="{multiple}"/>

As soon as the multiple attribute is used, it is rendered in any case with whatever value was passed. (Thus if you pass true as suggested currently, you get an invalid multiple="true".

This should be fixed by converting multiple into a boolean argument.

Reviews 1