(this is from an old thread I know, but the question hasn't been answered 
fully in this forum anywhere I see)

So I want to create a custom gwt theme. To do this, I created a standalone 
maven project with a similar dir structure that I see with the gwt standard 
theme inside gwt-user.jar. I package it as a jar so it looks like this:

com/mycompany/mytheme/StandardRTL.gwt.xml
com/mycompany/mytheme/Standard.gwt.xml
com/mycompany/mytheme/StandardResources.gwt.xml
com/mycompany/mytheme/public/css/standard.css
com/mycompany/mytheme/public/css/standard_rtl.css
com/mycompany/mytheme/public/images/thumb_vertical.png
com/mycompany/mytheme/public/images/circles.png
com/mycompany/mytheme/public/images/vborder_ie6.png
com/mycompany/mytheme/public/images/thumb_horz.png
com/mycompany/mytheme/public/images/vborder.png
com/mycompany/mytheme/public/images/corner_ie6.png
com/mycompany/mytheme/public/images/hborder_ie6.png
com/mycompany/mytheme/public/images/circles_ie6.png
com/mycompany/mytheme/public/images/corner.png
com/mycompany/mytheme/public/images/hborder.png

then I specify this mytheme.jar as a maven dependency on a gwt project, the 
idea being that more than one project will use it. In the gwt project, I 
inherit my custom theme in my gwt module file like this:

<inherits name='com.mycompany.mytheme.Standard' />

and all css styles from standard*.css are used so it works fine, *except* 
for the images which are simply not used/found.

What do I need to do so that the images are found and used properly when 
referenced from the css file? (how are custom themes supposed to be 
packaged?)


On Thursday, November 18, 2010 6:40:37 AM UTC-5, Thomas Broyer wrote:
>
>
>
> On 17 nov, 21:16, mitratul <[email protected]> wrote: 
> > Hi, 
> > 
> > I am trying to create my own theme and use it. But while launching Dev 
> > mode, it is giving the following errors in eclipse console: 
> > 
> > Initializing AppEngine server 
> > Loading modules 
> >    com.mitratul.theme.standard.Standard 
> >       Translatable source found in... 
> >          [WARN] No source path entries; expect subsequent failures 
> >       Bootstrap link for command-line module 
> > 'com.mitratul.theme.standard.Standard' 
> >          Linking module 'com.mitratul.theme.standard.Standard' 
> >             Constructing StandardLinkerContext 
> >                [ERROR] Primary linker is null.  Does your module 
> > inherit from com.google.gwt.core.Core or com.google.gwt.user.User? 
> > 
> > com.mitratul.theme.standard.Standard is my theme module. I have 
> > followed the same directory structure inside the module as i found 
> > inside GWT inbuilt themes. 
> > 
> > Can anybody tell me why is this error coming? 
>
> Your theme has to be <inherit/>ed in an application, not compiled 
> standalone.

-- 
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/-/9aANxl0A2osJ.
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