On 2 juin, 14:13, Robin <[email protected]> wrote:
> In ClientBundle, we can use:
>
>         @Source("anIcon.png")
>         public ImageResource anIcon();
>
> However, when I try to use a full class path like the following:
>
>         @Source("com/domain/app/public/images/anIcon.png")
>         public ImageResource anIcon();
>
> The eclipse gwt plugin indicates the resource file is missing, while
> the file is actually there.
>
> So i have the question:
> Can I use full class path name in @source? or did I do correctly like
> the above?

You can't use an "absolute" path, but you can use a relative one:
@Source("../public/images/anIcon.png")

-- 
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