That's not the case. As I said, the image file's name is medium.png so
the @Source annotation is not needed. I also said that I double
checked everything.


On 19 jan, 20:01, mariyan nenchev <[email protected]> wrote:
> You have to use @Source("yourimage.dif") if your image does not have name
> medium.gif, also check if the path to it is correct
>
>
>
> On Tue, Jan 19, 2010 at 9:52 PM, Célio <[email protected]> wrote:
> > I'm trying make a sprite from an image from this client bundle:
>
> > public interface InfoIcons
> >    extends ClientBundle
> > {
> >    ImageResource medium();
> > }
>
> > My ui.xml looks like this:
>
> > <ui:with field="icons"
> > type="net.kidux.kastle.commons.client.images.icons.InfoIcons"/>
> > <ui:image field="infoIcon" resource="{icons.medium}"/>
> > <ui:style>
> >       �...@sprite .header {
> >                gwt-image: "infoIcon";
> >        }
> > </ui:style>
>
> > But GWT fails to find the image resource in the client bundle. This is
> > the error messages from the devmode console:
>
> > 01:30:04,672  [DEBUG] Invoking
> > com.google.gwt.dev.javac.standardgeneratorcont...@46dacd
> >  01:30:04,672  [DEBUG] Preparing method infoIcon
> >    01:30:04,672  [DEBUG] Finding resources
> >      01:30:04,672  [ERROR] No
> > com.google.gwt.resources.client.ClientBundle$Source annotation and no
> > resources found with default extensions
>
> > I've checked everything twice and things seems to be all right.  The
> > medium.png file is located in the same package as the InfoIcons
> > interface.  I suspect that what I'm trying to do is not supported by
> > GWT (making sprites from ClientBundles) but I'm not sure.  I'm doing
> > exactly what Chris Ramsdale recomments in this post:
>
> >    http://groups.google.com/group/google-web-toolkit/msg/7c757428b19d11a0
>
> > May someone shed some light on this I will appreciate.
>
> > --
> > 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]<google-web-toolkit%2Bunsubs 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
-- 
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