Hi Toby, the correct attribute is t:blankLabel, not t:blankValue. And I recommend you use a message from a message catalog, except a literal String.
Regards nillehammer ----- original Nachricht -------- Betreff: T5 Blank option for select component Gesendet: Mo, 12. Mai 2008 Von: Toby Hobson<[EMAIL PROTECTED]> > I am trying to display list of enums in my select component and this works > well, but i would like to add a blank option and validate that the field has > been selected by a user (i.e. not the blank option). Reading through the > docs is seems T5 should support this but I can't seem to get it to display > the blank option. Have I missed something > > Here is my tml: > > <select t:type="select" t:blankOption="always" t:blankValue="please select > ..." t:validate="required" t:value="user.sex" name="select" id="select" > class="textbox_edit"> > <option></option> > </select> > > Toby > > --- original Nachricht Ende ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]