On 01/11/2008, at 9:33 AM, Q wrote:
>
> 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.
Ah.
> 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.
Right. Of course.
For future reference, the controller for the component was
public FooBar<UserGroup> getController();
where FooBar extends Controller<E>. I'd tried the class declaration of
the controller as:
public class FooBar extends Controller<UserGroup>
and
public class FooBar<E> extends Controller<E> instantiated with new
FooBar<UserGroup>.
> 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.
No worries.
with regards,
--Lachlan Deck
This archive was generated by hypermail 2.0.0 : Sat Nov 01 2008 - 00:46:42 EDT