#79571Form.Select do not work with ObjectStorage if the multiple attribute is false
Description
I have a model class with a attribute like “selectedCompany” which is a objectstorage.
If i write a for with a select like:
<f:form multiple="multiple" property="selectedCompany" options="{companies}" sortbyoptionlabel="true" prependoptionlabel="-- Bitte auswählen --" optionlabelfield="name" additionalattributes="{required: 'true'}"></f:form>
all works fine. I can select a single company or more. But some useres should only can select a single one like:
<f:form property="selectedCompany" options="{companies}" sortbyoptionlabel="true" prependoptionlabel="-- Bitte auswählen --" optionlabelfield="name" additionalattributes="{required: 'true'}"></f:form>
the selected company is not saved because the rendered select tag is not a array!
Reviews 2
History 25
-
Benni Mack changed target version <span data-processor="relativetime" data-value="2017-03-29T18:04:31+00:00" > 03/29/17, 18:04 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 96975 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-21T15:23:45+00:00" > 10/21/26, 15:23 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96975 <span data-processor="relativetime" data-value="2026-10-22T10:51:27+00:00" > 10/22/26, 10:51 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97035 <span data-processor="relativetime" data-value="2026-10-22T20:17:12+00:00" > 10/22/26, 20:17 </span>
-
Benjamin Kott commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-22T20:20:14+00:00" > 10/22/26, 20:20 </span>
Applied in changeset commit:3551971bb59e1967681dfd6141f51d18c1e6973d.