PDA

View Full Version : Can't find css/ext-all.css using Eclipse 3.4 / Mac OS X



dmccallie
10 May 2009, 5:41 PM
Hi,
I am evaluating GWT 1.6.4 + GXT 2.0-M1, and using Eclipse 3.4 on a Mac, under Java 5 (32 bit)

I can get a simple demo to run, but the hosted browser can't find any of the CSS and Image files necessary to decorate the forms. THe hosted browser returns a 404 on
"GET /css/ext-all.css" as well as 404's on certain GET Image/.... requests later on.

Where are the resources that aren't being found?

I created a sample GWT app using the GWT Eclipse plugin and did the following after confirming that the simple GWT app worked correctly:
+ added <inherits name='com.extjs.gxt.ui.GXT'/> to the module.xml file
+ added <link rel="stylesheet" type="text/css" href="css/ext-all.css" /> to the host page
+ added gxt.jar to the build_path (and automatically to the class_path.)

Clearly some key static resources aren't being found - what should I add and where? I don't see any examples using the GWT Eclipse Plugin - is this a problem?

Thank you!

sby
10 May 2009, 6:20 PM
you have to add the resources to any location in WAR directory structure.

then change the css link in you application HTML file to point to the new name gxt-all.css

the resources founded in library directory.

dmccallie
10 May 2009, 7:17 PM
Thank you! I guess the documentation is wrong. I created a sub directory "gxt" under the "war" directory, and then copied the contents of the "resources" folder from the distribution zip file to war/gxt/*. Then I updated the links in my head web page to point to:

<link type="text/css" rel="stylesheet" href="gxt/css/gxt-all.css">

and it worked like a charm!

matla69
18 Jul 2009, 1:10 AM
DMCCallie, i created a sub directory gxt under the war but i don't know where is the direcorty ressource? its src directory with my class java?
My appli only with GWT works but not with GXt... could you explain the installation please?
The file gxt-all.css is visible? or it's inside the jar?