> I get constant pushback on the need to define a
> value property to store the current object.


Yeah, that's exactly why I started down this path.

I'm working through some ideas about getting generics support into @Inject'd 
services. 

How does the community feel about binding a generic type by providing the 
parameters something like this:

//MyGenericInterface<Long,String>

serviceBinder.bind(MyGenericInterface.class).withTypeParameters(Long.class,String.class);

I'd append the type parameters to the serviceId. Each differently typed service 
would obviously need a different instance, although if you provide an 
implementation you would probably be able to do the wrong thing since there is 
no type checking.

I'll try to prototype something today or tomorrow.

-- Josh

On Aug 26, 2010, at 7:17 AM, Howard Lewis Ship <[email protected]> wrote:

> That looks awesome ... I get constant pushback on the need to define a
> value property to store the current object.
> 
> I would say we could start to deprecate the "var:" binding prefix once
> this is in place.
> 
> On Wed, Aug 25, 2010 at 11:50 PM, Josh Canfield <[email protected]> 
> wrote:
>> I went back over the generics code and added better support for
>> wildcard and parameterized types.
>> 
>> One of my favorite parts of this change is the new improved Loop:
>> 
>>    @Property
>>    @Component(parameters = {"source=personSource"})
>>    private Loop<Person> personLoop;
>> 
>>    @Property
>>    private List<Person> personSource;
>> 
>> 
>> <h2>Person Loop</h2>
>> <t:loop t:id="personLoop">
>>    <div id="person_${personLoop.index}">${personLoop.value.name}</div>
>> </t:loop>
>> 
>> I was able to make the value and index properties of loop public and
>> access them from the template.
>> 
>> Jira is down right now or I'd file a defect and attach it... I guess
>> I'll do that later if needed.
>> 
>> 
>> Josh
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator of Apache Tapestry
> 
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
> 
> (971) 678-5210
> http://howardlewisship.com
> 
> ---------------------------------------------------------------------
> 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