How can I override a ClientBundle through Deferred binding to override
or add resources like images?

Explain:
I have a CLientbundle LoginResources that extends from Clientbundle.
The LoginResources contains images that are used in the CSS file.
I like to be able to use the  RichLoginResources interfaces that
extends LoginResources that override some images methods in
LoginResources such that other images are shown (I want to use this
for Themes).

So my gwt configuration contains:
---
<replace-with class="theme.standard.RichLoginResources">
        <when-type-is class="bla.LoginResources" />
</replace-with>
--

The ClientBundle is created through:
GWT.log(LoginResources.class);
This works well until I add the above gwt config.
GWT complaints that RichLoginResources is abstract:
--
00:05:16,827 [ERROR] Deferred binding result type
'theme.standard.RichLoginResouces' should not be abstract
---

I understand the error as RichLoginResources is an interface, just
like LoginResources. However, I would expect that GWT is smart enough
to see that it concerns a ClientBundle an generate the code itself,
just like it does for LoginResources without the above gwt config.

What is going wrong here? And how could I make this work?
- Ed


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to