What about using ClientBundle and CssResource? http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource
Cheers, Dave On Feb 23, 7:49 am, Ashar Lohmar <[email protected]> wrote: > you should put the css in a folder named public inside your module > package, the folder should be on the same level as the client folder > there's no need for the <stylesheet src='Music.css' /> specification > on the .gwt.xml file > > you could take a look at the GWT-Upload library it has same situation, > their jar contains gwt module with no entry point and css that > contains the css-classes for their widgets. > > good luck > > On Feb 22, 9:20 pm, Ashish Khivesara <[email protected]> > wrote: > > > Any one with a solution for this issue? > > I even tried using UiBinder and css in conjunction to solve this issue but > > have not been able to. > > > Any direction would be helpful. > > > Thanks > > Ashish > > > On Fri, Feb 19, 2010 at 5:52 PM, Ashish Khivesara < > > > [email protected]> wrote: > > > This looks like a bug. > > > > Issue: If a module without a entry point includes a stylesheet element > > > then > > > the path is considered to be relative to the module that may inherit it. > > > This make it rigid and thereby adds a dependency between the inheriting > > > module. > > > > In my case Music module had this line in the Music.gwt.xml > > > <stylesheet src='Music.css' /> > > > > Now Home module inherits Music modules. > > > > But GWT instead of looking for /music/Music.css, looks for the css > > > resource > > > in /home/Music.css > > > > [WARN] 404 - GET /home/Music.css (127.0.0.1) 1400 bytes > > > > On Fri, Feb 19, 2010 at 5:31 PM, Ashish Khivesara < > > > [email protected]> wrote: > > > >> Well the issue here would maybe because the module here in question does > > >> not an Entry point and hence there is no hostpage to inject this css > > >> reference into. > > >> So this there a way to make sure the inheriting module injects this > > >> stylesheet in its host page?? > > > >> Thanks > > >> Ashish > > > >> On Fri, Feb 19, 2010 at 5:18 PM, Ashish Khivesara < > > >> [email protected]> wrote: > > > >>> I need to associate a local css resource file with a module. This module > > >>> does not have Entry point hence I cannot simply import it in the html. > > >>> Here is what I did > > > >>> I added this line in my Music.gwt.xml > > > >>> <stylesheet src='Music.css' /> > > > >>> Music.css resides in the war/ directory > > > >>> Now I inherit this module in another Module. However the css resource > > >>> does not seem to be attached / downloaded. > > > >>> Any pointers? > > > >>> Thanks > > >>> Ashish -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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.
