PDA

View Full Version : [FIXED] xtheme-gray.css can not be loaded under grails gwt-plugin



bokbokan
7 Sep 2008, 7:05 PM
xtheme-gray.css could not be loaded under grails gwt-plugin because the plugin put the module code in gwt/<module-name>/ and ext-all.css in gwt/<module-name>/css/ while gsp page (view) is loaded under the controller name. Consequently xtheme-gray.css will be loaded under <controller-name>/css which definitely will not be found.

I think this is also a problem not only in case of grails gwt plugin. Anytime the host page resides in other location instead of the gwt default.

Looking at the GXT.java code, will changing

CSS.addStyleSheet(themeId, "css/" + fileName);into

CSS.addStyleSheet(themeId, GWT.getModuleBaseURL() + "/css/" + fileName);solved the problem?

Regards

darrellmeyer
8 Sep 2008, 6:49 PM
Fixed in SVN.