2
<module>
<inherits name="com.google.gwt.core.Core"/>
<inherits name="com.google.gwt.user.UserAgent"/>
<inherits name="com.google.gwt.user.User"/>
<replace-with class="hu.goodimpress.szamlazo.ajax.client.utils.JSON.JsonReader">
<when-type-is class="com.extjs.gxt.ui.client.data.JsonReader"/>
<when-property-is name="user.agent" value="gecko1_8"/>
</replace-with>
<replace-with class="hu.goodimpress.szamlazo.ajax.client.utils.JSON.JsonReader">
<when-type-is class="com.extjs.gxt.ui.client.data.JsonReader"/>
<when-property-is name="user.agent" value="opera"/>
</replace-with>
<replace-with class="hu.goodimpress.szamlazo.ajax.client.utils.JSON.JsonReader">
<when-type-is class="com.extjs.gxt.ui.client.data.JsonReader"/>
<when-property-is name="user.agent" value="safari"/>
</replace-with>
<inherits name="com.extjs.gxt.ui.GXT"/>
<inherits name="hu.goodimpress.szamlazo.ajax.Start"/>
<entry-point class="hu.goodimpress.szamlazo.client.Szamlazo"/>
</module>
但GWT没有改变GXT JsonReader,我JsonReader:(( 我使用调试模式.... 所以它会更容易更换中央类从时间和地点,如果获得代码要少GWT XML替换类
为什么
不幸的是,JsonReader需要一个构造函数的参数,所以GWT.create是行不通的创建它。另外值得指出的是,如果你总是想要替换某些东西,那么就不需要检查属性 - 如果这些属性中的任何一个导致相同的替换,那么所有标签都可以放在相同的<替换为>标记。 –
2012-01-31 06:20:37