So, you want a generic way to generate the value for the objects in the
collection (and the display text I presume)? 

-----Original Message-----
From: Ted Steen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 27, 2006 1:26 PM
To: Tapestry users
Subject: Re: PropertySelectionModel

I provided code for the NamedPropertySelectionModel and the
INamedProperty interface in my previous message as an attachment.

An example would be a page where the model for a @PropertySelection is
a new NamedPropertySelectionModel("a collection of objects of type <?
extends INamedProperty>");

I needed a way to be able to select a property and then get it mapped
to an object in my application.
Now with NamedPropertySelectionModel I just implement the
INamedProperty interface on the classes I want to be able to list as
properties on my page.
And then instansiate NamedPropertySelectionModel with a Collection of
these objects.

The naming convention could be a bit messed up as English is not my
native language...


On 4/27/06, Mark Stang <[EMAIL PROTECTED]> wrote:
> Can you provide code and an example?
>
> regards,
>
> Mark
>
>
> -----Original Message-----
> From: Ted Steen [mailto:[EMAIL PROTECTED]
> Sent: Thu 4/27/2006 2:14 AM
> To: Tapestry users
> Subject: PropertySelectionModel
>
> I created a "NamedPropertySelectionModel". Is this something that has
> already been done that I could find in T4?
> It just feels like something alot of people would need.
>
> Cheers!
> /ted
>
>
>
>


--
/ted

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




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

Reply via email to