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
Register / Login
JavaRanch » Java Forums » Application Frameworks » GWT
Reply Bookmark "ImageResource" Watch "ImageResource" New topic
Author

ImageResource

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 219
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: 7602

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


[Donate a pint, save a life!] [How to ask questions]
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 219
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: 7602

Recommended reading http://code.google.com/webtoolkit/doc/latest/DevGuideUiImageBundles.html
 
IntelliJ Java IDE
 
subject: ImageResource
 
Threads others viewed
Image is not displayed on the JSP page.
Java File Name details
Copy Picture (Image)
how image path should be passed to servlet
resize svg image
jQuery in Action, 2nd edition

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture