PDA

View Full Version : First step with ExtGWT and recursive error on Window build



NicoP
26 Jun 2008, 1:33 AM
Hello,
This is my first step to use ExtJS2 with GXT1.0RC1 and GWT1.5, but I get a recursive error (10 errors occurs every seconds) when I try to draw a Window object.

Error message in Mozilla Fire Bug:

ext-base.js (line 10)
Ext.lib.AnimMgr has no properties
getViewWidth()ext-base.js (line 10)

chrome://firebug/content/blank.gif(function(){var B;Ext.lib.Dom={getViewWidth:function(E){return E?this.getDocumen...
My basic code into the Java entry point:


public void onModuleLoad() {
Window win = new Window();
win.setTitle("My Title");
win.setSize(300,200);
win.setResizable(false);
win.setModal(false);
win.show();
}
My HTML page contains the following HEADER lines:


<link rel="stylesheet" type="text/css" href="${ctx}/resources/ext/resources/css/ext-all.css" />
<script type="text/javascript" src="${ctx}/resources/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="${ctx}/resources/ext/ext-all-debug.js"></script>
<script type="text/javascript" src="com.xxx.MyEntryPointClass.nocache.js"></script>


XML file module description:


<module>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.extjs.gxt.ui.GXT'/>

<entry-point class='xxx.xxx.MyEntryPointClass'/>

<servlet path="/myService" class="xxx.server.MyServiceImpl"/>

</module>


Thanks in advance for your help.

Nico

gslender
26 Jun 2008, 4:13 AM
I'm not sure if you can easily mix ExtJS and ExtGWT together in one page... not certain?

For just ExtGWT only, in the HTML page, you don't need to include the Ext JS and styles..

Only this style..

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

...and your existing only JS for GWT...


<script type="text/javascript" src="com.xxx.MyEntryPointClass.nocache.js"></script>

NicoP
26 Jun 2008, 6:12 AM
Thanks for your help, it works!