#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 03/29/17, 18:04
-
Gerrit Code Review pushed patch set 1 for main to change 96975 status
NewUnder Review 10/21/26, 15:23 -
Gerrit Code Review pushed patch set 2 for main to change 96975 10/22/26, 10:51
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97035 10/22/26, 20:17
-
Benjamin Kott commented and changed status
Under ReviewResolved done0 %100 % 10/22/26, 20:20
Applied in changeset commit:3551971bb59e1967681dfd6141f51d18c1e6973d.