I now got the answer. I am not allowed to specify the same pic more
than once in a ImageBundle. As long as the content of the two pics are
the same, you can't put them together inside a ImageBundle. My case is
as follows:
public interface MethodDescriptor extends ImageBundle {
@Resource("newOperation.gif")//newOperation.gif is put under the
same package.
AbstractImagePrototype getNewOperation();
@Resource("copyOfNewOperation.gif")
AbstractImagePrototype getCopyOfNewOperation();
}
I am not sure if this is a bug?
On Jan 19, 11:50 am, cheng <[email protected]> wrote:
> public interface MethodDescriptor extends ImageBundle {
> @Resource("newOperation.gif")//newOperation.gif is put under the
> same package.
> AbstractImagePrototype getNewOperation();}
>
> methodDescriptor = GWT.create(MethodDescriptor.class);
> PushButton newOperation = new PushButton(getMethodDescriptor
> ().getNewOperation().createImage());
>
> i am using gwt-windows-1.5.3. There is no image shown on the
> newOperation button in hosted mode. It's been very strange, as the
> source code is quite simple here. Is there anything i have missed out?
>
> Any idea and suggestion will be appreciated.
>
> Many thanks,
> Cheng Wei
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---