Hey Java friends,
I am just testing around with the GWTD. In the following problem scenario are two GWT modules within one Dynamic Web Project:
MyModuleGWT (a standard GWT module)
host file: MyModuleGWT.jsp
MyModuleExtGWT (a Module configured by GWTD to use GXT: "Configure for using ExtGWT (GXT)")
host file: MyModuleExtGWT.jsp
To make GXT module run with GWTD, it was necessary to manually add MyModuleExtGWT.jsp to the welcome-file-list of web.xml and to add the following line to the MyModuleExtGWT.jsp file itself:
<link type="text/css" rel="stylesheet" href="ExtGWT/css/gxt-all.css"/>
If jsp host file is not added to web.xml's welcome-file-list, the following error is shown (using GWTD with GXT module):
- Code: Select all
GXT requires not just gxt.jar, but also set of resources, such as CSS files, images, etc. You should use "Configure for using GXT" action on your GWT module. GWT Designer was not able to find "gxt-.css" file.
Even the normal GWT module (MyModuleGWT) is throwing the error in this scenario.
After adding the MyModuleExtGWT.jsp to the welcome-file-list, both modules are running fine again.
Is there a problem with JSP host files? Why is the module MyModuleGWT affect which is NOT configured to use GXT (only uses pure GWT)?