Hi all,

I would like to know what's the outcome of setting setNullValid(true) --
is it that the choices will start with an empty string choice?

My problem:

userField = new DropDownChoice<User>("user", facade.getAllUsers()); --
keeps the "Choose one" option even without setting null valid to true
(wanted behaviour) after first select

schoolField = new DropDownChoice<String>("school", Arrays.asList("FA",
"FBMI", "FD", "FEL", "FIT", "FJFI", "FSI", "FSV", "OTHER")); -- after
first select, the options lose the "Choose one" option (I suppose that's
the correct behaviour)

When I set valid null value to true, I got an empty string in the
choices and it works. So why without setting this on the previous
component, there is ability to choose null and it' represented as
"Choose one"?

Regards,

-- 
Marek Šabo


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to