This is why I don't use the common "public" folder hierarchy as it fosters 
this kind of error.

I suggest:

com.yourApp.yourPkg.resources/

(interfaces like MyResources at this level) 

images/ (raw images)

css/ (raw CSS)

 

This way:

   - All CSS/images are self contained within that package (i.e. a custom 
   widget)
   - You don't need to have the files in "public" copied to your war, even 
   if they are unused 
   - You don't have the common problem of 20 widgets using the same CSS 
   file (selector hell).
   - Makes it easier to use @Source annotation since its just 
   "images/name.png", not "../../../../otherPkg/public/images/name.png"


Sincerely,
Joseph

 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/j26srKjRkB4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to