Re: Select component with Enums

2007-09-18 Thread andyhot
Take a look at LabeledPropertySelectionModel of T4... It can decorate every other Model - it simply adds an entry with a configurable label on top. Robin Helgelin wrote: On 9/18/07, Christoph Jaeger <[EMAIL PROTECTED]> wrote: Now I would like to have the same drop down list, only with an

RE: Select component with Enums

2007-09-18 Thread Mark Stang
users Subject: Re: Select component with Enums On 9/18/07, Christoph Jaeger <[EMAIL PROTECTED]> wrote: > Now I would like to have the same drop down list, only with an "- empty > -" entry as first entry (meaning: no color was selected, > preferredColor==null). Is there an easy

Re: Select component with Enums

2007-09-18 Thread Robin Helgelin
On 9/18/07, Christoph Jaeger <[EMAIL PROTECTED]> wrote: > Now I would like to have the same drop down list, only with an "- empty > -" entry as first entry (meaning: no color was selected, > preferredColor==null). Is there an easy way to define this (something like > > t:empty="- empty -"/> > > wo

Select component with Enums

2007-09-18 Thread Christoph Jaeger
Using the select component with an Enum is very convenient: ... ... to display a html drop down list showing all entries defined by the Enum Color. Now I would like to have the same drop down list, only with an "- empty -" entry as first entry (meaning: no color was selected, preferredColor==n