2011-01-20 80 views
0

我有XML模块那样:为什么在我的应用程序中没有显示任何GWT主题,只有标准主题?

<?xml version="1.0" encoding="UTF-8"?> 
<module rename-to='sapepass'> 
<inherits name='com.google.gwt.user.User' /> 
<inherits name='com.google.gwt.visualization.Visualization'/> 
<inherits name="com.google.gwt.i18n.I18N"/> 
<inherits name='com.google.gwt.json.JSON'/> 
<inherits name='com.google.gwt.requestfactory.RequestFactory'/> 
<extend-property name="locale" values="es_CO" /> 
<set-property-fallback name="locale" value="es_CO" /> 
<inherits name='com.google.gwt.user.theme.chrome.Chrome'/> 
<entry-point class='co.ibm.spms.sap.epass.client.SAPePass' /> 
<inherits name="co.ibm.spms.ui.utils.Utils" /> 
<inherits name="eu.maydu.gwt.validation.ValidationLibrary"/> 
<source path='client' /> 
<source path='shared' /> 
</module> 

的Html

<head> 
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> 
<link rel="icon" href="favicon.ico" type="image/x-icon" /> 

<!--                --> 
<!-- Consider inlining CSS to reduce the number of requested files --> 
<!--                --> 
<link type="text/css" rel="stylesheet" href="SAPePass.css"> 

<!--           --> 
<!-- Any title is fine       --> 
<!--           --> 
<title>SAP ePass</title> 

<!--           --> 
<!-- This script loads your compiled module. --> 
<!-- If you add any GWT meta tags, they must --> 
<!-- be added before this line.    --> 
<!--           --> 
<script type="text/javascript" language="javascript" src="sapepass/sapepass.nocache.js"></script> 
</head> 

但是当我运行的应用程序去,其结果是,颜色对应于标准的主题。这是因为STANDRD CSS的进口是镀铬后的CSS(生成html):

<head> 
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> 
<link rel="icon" href="favicon.ico" type="image/x-icon"> 

<!--                --> 
<!-- Consider inlining CSS to reduce the number of requested files --> 
<!--                --> 
<link type="text/css" rel="stylesheet" href="SAPePass.css"> 

<!--           --> 
<!-- Any title is fine       --> 
<!--           --> 
<title>SAP ePass</title> 

<!--           --> 
<!-- This script loads your compiled module. --> 
<!-- If you add any GWT meta tags, they must --> 
<!-- be added before this line.    --> 
<!--           --> 
<script type="text/javascript" language="javascript" src="sapepass/sapepass.nocache.js"> </script> 
<script defer="defer">sapepass.onInjectionDone('sapepass')</script> 
<link rel="stylesheet" href="http://127.0.0.1:8888/sapepass/gwt/chrome/chrome.css"> 
<link rel="stylesheet" href="http://127.0.0.1:8888/sapepass/gwt/standard/standard.css"> 
</head> 

我能做些什么?

注:使用GWT 2.1.1 的Eclipse

回答

0

你为什么要明确注射在你的HTML铬和标准的CSS

I'm?适当的css会根据你的模块xml自动注入。

+0

注入是自动的,我不把anytjing放在我的html上,再次看到这个问题 – SebRojas 2011-01-21 13:22:34

相关问题