File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes ImageResource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "ImageResource" Watch "ImageResource" New topic
Author

ImageResource

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
in gwt documentation
imageresource
it mentions imageresource,
Now, my project has a clinet package, server package, if I create an imageresource, this folder should under which package?
also, in the documentation,

or each accessor method, add an @Source annotation with the path of the new image you want to add to your program.


now my image is stored in war/Imiages/xxx.png
then should I use

?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

I usually put mine under client/resources

peter tong wrote:
now my image is stored in war/Imiages/xxx.png
then should I use

No. have the images under something like client/resources/images and then use
@Source("images/xxx.png")


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
the imageresources (image) is get from server, but why the image folder put inside client package?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

Recommended reading http://code.google.com/webtoolkit/doc/latest/DevGuideUiImageBundles.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ImageResource