I use GWT 1.5. I use a css file called index.css it contains styles
like this:

.Index-NavButton { background:#CA2F2F url('websiteImages/
redStripes.gif') repeat; }

I have the following folder structure:

src
   - myProject
           -public
                - websiteImage
                  here come the image files
            Index.css
            Index.html
    Index.gwt.xml

My Index.gwt.xml looks like this:
<module>
        <inherits name='com.google.gwt.user.User'/>
        <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> --
>
        <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
        <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->
        <entry-point class='myProject.client.Index'/>
        <stylesheet src='Index.css' />

        <servlet path="/SetupServiceImpl"
class="myProject.server.SetupServiceImpl"/>
</module>

In my Index.java I do something like this:
navButtons[i].setStyleName("Index-NavButton");

The problem: the image behind url('websiteImages/redStripes.gif') is
not shown although the url denotes an existing image in the
corresponding folder. Why isn't this image displayed?


--~--~---------~--~----~------------~-------~--~----~
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