Improve Support for placeholder label option for DropDownChoice?

2015-04-01 Thread Thorsten Schöning
Hi all, I got the following error during validation of one of my forms today: > The first child option element of a select element with a required > attribute, and without a multiple attribute, and without a size > attribute whose value is greater than 1, must have either an empty > value attribu

Re: Improve Support for placeholder label option for DropDownChoice?

2015-04-01 Thread Sven Meier
Hi, why don't you allow null (i.e. #isNullValid() returning true), while setting the DropDownChoice required? That should give you the required placeholder option, doesn't it? Regards Sven Am 01.04.2015 um 20:24 schrieb Thorsten Schöning: Hi all, I got the following error during validatio

Re: Improve Support for placeholder label option for DropDownChoice?

2015-04-02 Thread Thorsten Schöning
Guten Tag Sven Meier, am Mittwoch, 1. April 2015 um 22:54 schrieben Sie: > why don't you allow null (i.e. #isNullValid() returning true), while > setting the DropDownChoice required? Because null is not valid in my case and the displayed texts for the placeholder label option are different for bo

Re: Improve Support for placeholder label option for DropDownChoice?

2015-04-02 Thread Sven Meier
Hi Thorsten, > Because null is not valid in my case What do you mean by 'is not valid'? Whether null is accepted as input will be decided by #isRequired(). 'Null valid' will give you an additional option as the spec seems to demands it. > the displayed texts for the placeholder label option

Re: Improve Support for placeholder label option for DropDownChoice?

2015-04-02 Thread Thorsten Schöning
Guten Tag Sven Meier, am Donnerstag, 2. April 2015 um 12:40 schrieben Sie: > What do you mean by 'is not valid'? Whether null is accepted as input > will be decided by #isRequired(). setRequired is called with true as well, but specifying null as valid input to the component is wrong in my case a