Re: component bindings / generics / errors

From: Q (qdola..mail.com)
Date: Fri Oct 31 2008 - 18:33:48 EDT


On 31/10/2008, at 6:54 PM, Lachlan Deck wrote:

> Hi there,
>
> I've got a Controller<E> and the following:
>
> private E displayGroupItem;
>
> public E getDisplayGroupItem() { ... }
> public void setDisplayGroupItem( E item ) {...}
>
> However the inline bindings are giving errors when doing the
> following, for example.
> $controller.displayGroupItem.name
>
> Any ideas?

WOLips cannot (yet) resolve generics. Any generic type, in this case
E, will be erased to Object (even for the case of 'E extends
whatever') when the bindings are validated. I have been wanting to
sit down and work out how to handle this better but the time required
to do so has evaded me.

-- 
Seeya...Q

Quinton Dolan - qdola..mail.com Gold Coast, QLD, Australia (GMT+10) Ph: +61 419 729 806



This archive was generated by hypermail 2.0.0 : Fri Oct 31 2008 - 18:34:45 EDT