Thank you very much for the nicely telling me to read the entire page, not just 
the part I thought I needed ;)

That solved everything.

Thanks to the Tap team for making selects _much_ easier to work with in 5!

Tony

On Jun 26, 2011, at 2:57 PM, Bob Harner wrote:

> Tony,
> 
> The menu options are determined by your SelectModel. Rather than using
> your "groups" list as the select model, use SelectModelFactory to
> generate a SelectModel for you, specifying the attribute to be used
> for the visible options. See the SelectWithListDemo.java example at
> http://tapestry.apache.org/using-select-with-a-list.html and let me
> know if anything in that page isn't clear.
> 
> On Sun, Jun 26, 2011 at 1:09 PM, Tony Nelson <tnel...@starpoint.com> wrote:
>> Following the sample here: 
>> http://tapestry.apache.org/using-select-with-a-list.html
>> 
>> I created a ValueEncoder and ValueEncoderFactory for my select model.  That 
>> was simple enough.  I created the actual select like this:
>> 
>> <t:select t:id="groupSelect" blankLabel="[ ALL ]" model="groups" 
>> value="searchKeys.group" />
>> 
>> Is it possible to tell the select which attribute of my model should be used 
>> to generate the options? It seems to call toString() by default which isn't 
>> appropriate for this model.
>> 
>> Thanks
>> Tony Nelson
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to