Sorry, my bad, i didn't provide enough info
as i said you should take a look into the gwt-upload library

so in the gwt-upload it's like this, the css is in the "public" folder
which is on the same level as the "client" folder
you have to take care to add them to your jar, for GWT the "public"
folder is special, it take every thing in it and it puts it in the
folder where the gwtCompilation will be as it was done in the older
version (in GWT 1.6 the folder public was a "must" it was described as
part of an module),
the other importnat thing which i forget to say is that in
the .gwt.xml of the "consumer" module,
when you do the <inherit name="<your_lib_module>" /> you have to add
the <stylesheet /> tag
in gwt-upload usage it asks to add these in my "consmer" module
        <inherits name="gwtupload.GWTUpload" />
        <stylesheet src="Upload.css" />
now if think about it  ... you might try adding the <stylesheet /> tag
in the gwt.xml of you libModule and check if it's the same result


sorry for the incomplete response i gave yesterday, i don't know all
these "by hart" i just remembered that i sow them there and told you
what's there after a brief analysis.

good luck






On Feb 23, 9:22 pm, Ashish Khivesara <[email protected]>
wrote:
> Ok. Sorry I did not read it right :( .. So i did add it in the folder
> named 'public' , However it does not seem to request for that resource
> (Music.css). Like you said I have not  included <stylesheet
> src='Music.css' /> specification
> on the .gwt.xml file
>
> Wonder what's the issue here.. I am using GWT2.0.2
>
> On Tue, Feb 23, 2010 at 9:14 AM, Ashish Khivesara
>
> <[email protected]> wrote:
> > Thanks Ashar for your response. I am a little perplexed though. Java
> > does not allow the 'public' as part of package name, and hence eclipse
> > does not let me do that. So how can one name a package as e.g.
> > com.ashish.client.music.public (if I understood what you meant
> > correctly)
>
> > 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.

Reply via email to