This content has been marked as final.
Show 3 replies
-
1. Re: selectOneMenu, selectItems, convertEntity and null value
damianharvey Nov 7, 2007 1:36 PM (in response to erik.d.hellman)If you have the noSelection present and nothing is selected the value should be null. Have you tested it? What value are you getting?
Cheers,
Damian. -
2. Re: selectOneMenu, selectItems, convertEntity and null value
erik.d.hellman Nov 7, 2007 1:43 PM (in response to erik.d.hellman)"damianharvey" wrote:
If you have the noSelection present and nothing is selected the value should be null. Have you tested it? What value are you getting?
If nothing is selected (i.e., the noSelectionLabel is the selected entry) and the entity-field is null, nothing is set.
However, if the field is set (i.e., has a reference to another entity) it cannot be set to null again using the same method. -
3. Re: selectOneMenu, selectItems, convertEntity and null value
damianharvey Nov 8, 2007 7:04 AM (in response to erik.d.hellman)I've just tested this in my app and it does get set back to NULL in the database. Post some of your code.
Cheers,
Damian.