Hi,
I have two interfaces:
public interface Banners extends ClientBundle {
ImageResource logo();
ImageResource guj();
}
public interface Icons extends ClientBundle {
ImageResource br();
ImageResource us();
}
In the main class, I group them together under a single interface:
public class View {
...
public static interface Images extends Banners, Icons { }
...
}
In ui.xml, I use them:
<ui:with field='images' type='java.client.View.Images' />
<g:HTMLPanel>
<g:Image resource='{images.logo}' /> // error
<g:Image resource='{images.guj}' /> // error
</g:HTMLPanel>
The app runs normally, but GPE highlights the following errors:
"Method logo is undefined" and "Method guj is undefined". Is this some
type of bug or am I missing something?
May be important to say the same technique works fine with Messages,
no error is highlighted:
<ui:with field='messages' type='java.client.View.Messages' />
...
<g:HTML text='{messages.heading}' /> // no error
Thanks in advance,
Fábio Miranda.
--
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.