Thursday, January 12, 2012

Re: how to find the path to image resources

You have to navigate relatively from the directory your Resource
interfaces resides in...

On 11 Jan., 20:32, mars <marsg...@gmail.com> wrote:
> hi,
>
> i have a maven gwt project, no exception all the images are stored
> under 'src/main/webapp/img', then in the package :
> 'com.mycom.myapp.client' i have Resources.java which defines all
> images/text/css resources for the whole project as below:
>
> public interface Resources extends ClientBundle {
>     final static String IMG_ROOT_PATH = "src/main/webapp/img/";
>
>     Resources INSTANCE = GWT.create(Resources.class);
>
>     @Source(IMG_ROOT_PATH + "logo.png")
>     ImageResource logo();
>
> }
>
> however when i complied it complaint cannot find that image. how
> should i specify the path here? thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate