Sorry all, should have made it clear that I was in Tapestry 5.

On 4/15/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
I do this with the new IOptionRenderer (which can be passed to
PropertySelect component) in combination with a model object that is given
the "choose" message from a IComponent.getMessages().get("choose") kind of
localization.

The IOptionRenderer is an easy way to do something like some of the google
gmail drop down select options where the first option is a styled gray text
item of "Choose..." or similar and the actual items to pick from are padded
with &nbsp; to give it a nice layout.

On 4/14/07, Bill Holloway <[EMAIL PROTECTED]> wrote:
>
> In my domain model, I have the ubiquitous "Person" class and lists of
> these objs. to display in <select> elements.  I have written a
> ValueEncoder and SelectModel for the class, and that works fine.
>
> I'd also like to have an elegant way to add a "Choose One" option in
> the list (at the top).  Ideas?
>
> Thanks,
> Bill
>
> --
> "The future is here.  It's just not evenly distributed yet."
>
>      -- Traditional
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com



--
"The future is here.  It's just not evenly distributed yet."

    -- Traditional

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to