You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Toby Hobson <to...@btinternet.com> on 2008/05/12 22:47:12 UTC

T5 Blank option for select component

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