Hi Cheng,

I think it has to do with the mechanism used to create image bundles
based on an MD5 hash of the content.

So the collision isn't surprising.

Why do you want to have a duplicate image? GWT has a mechanism that
transforms an image in an image bundle to a GWT Image widget. Have you
investigated that path?

Cheers,
jec

On Jan 19, 12:30 am, cheng <[email protected]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to