• Post Reply Bookmark Topic Watch Topic
  • New Topic

ImageResource

 
peter tong
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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")
 
peter tong
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the imageresources (image) is get from server, but why the image folder put inside client package?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!