Re: location for images

2009-08-11 Thread denis56

Thanks,

That's just what I wanted to hear.



On 11 Aug., 17:32, Sean  wrote:
> I had problems with this too.
>
> Regular images, that are NOT in an Image Bundle can go in your war
> file. I typically keep a WAR/images folder and drop everything in
> there. Then a reference to them would be Image test = new Image(images/
> test.png); if the image file is WAR/images/test.png
>
> ImageBundle pictures have to be kept in the code files. It's kind of
> confusing, but essentially these pictures get compiled using the code
> and put into one single image. They will be kept somewhere in (typical
> folder structure) com/client/[AppName]/...
>
> An example from the API:
>
>   �...@resource("com/client/myapp/icons/btn_cancel_icon.png")
>    public AbstractImagePrototype cancelButtonIcon();
>
> Hope this helps.
>
> On Aug 10, 5:55 am, denis56  wrote:
>
>
>
> > His,
>
> > In GWT 1.5 one needed to put images under public directory, with gwt
> > 1.6/1.7 the recommended location is somewhere under your war
> > directory. I use normal images as well as ImageBundle in my project.
> > Could someone please clarify where image bundles are supposed to go
> > now - stay under public directory or go together with other non-
> > imagebundle files out to war?
>
> > Thannks
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: location for images

2009-08-11 Thread Sean

I had problems with this too.

Regular images, that are NOT in an Image Bundle can go in your war
file. I typically keep a WAR/images folder and drop everything in
there. Then a reference to them would be Image test = new Image(images/
test.png); if the image file is WAR/images/test.png

ImageBundle pictures have to be kept in the code files. It's kind of
confusing, but essentially these pictures get compiled using the code
and put into one single image. They will be kept somewhere in (typical
folder structure) com/client/[AppName]/...

An example from the API:

   @Resource("com/client/myapp/icons/btn_cancel_icon.png")
   public AbstractImagePrototype cancelButtonIcon();

Hope this helps.



On Aug 10, 5:55 am, denis56  wrote:
> His,
>
> In GWT 1.5 one needed to put images under public directory, with gwt
> 1.6/1.7 the recommended location is somewhere under your war
> directory. I use normal images as well as ImageBundle in my project.
> Could someone please clarify where image bundles are supposed to go
> now - stay under public directory or go together with other non-
> imagebundle files out to war?
>
> Thannks
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



location for images

2009-08-10 Thread denis56

His,

In GWT 1.5 one needed to put images under public directory, with gwt
1.6/1.7 the recommended location is somewhere under your war
directory. I use normal images as well as ImageBundle in my project.
Could someone please clarify where image bundles are supposed to go
now - stay under public directory or go together with other non-
imagebundle files out to war?

Thannks
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---