Hi
thank you for your help.
I did switch from int to Integer and it works fine now.
Cheers B
Matthias Keller schrieb:
Hi Björn
You should probably either switch from int to Integer (which can
be null) or provide an own values list which includes your default
entry for example with value -1 (or customize the DropDownChoice to do
that)
Matt
Björn Tietjens wrote:
Hi,
I have a problem with an webform containing several dropdowns.
Each dropdown is getting a (shared) object and one of the objects
(int) properties as model.
This way I can set the properties width and height of the object box.
Now the drop downs are supposed to be optional... and when no item
was chosen a default value should be applied.
Not choosing an item from the dropdown and submitting the form resuts
in an error saying that 'null' could not be set for the property of
the model...
How can I make that work?
thank you for your help in advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]