BillAtSDC
05-02-2008, 11:26 AM
Hi guys, very hard day trying to get ExtGwt working with ExtJS.
Have tried this with GWT1.5M2 and now back to GWT1.5M1.
. Regular Gwt widget apps work perfectly, even used Async + GWT RPC JSON.
. Regular ExtJS widgets work perfectly, even used AJAX JSON calls to JSP.
. Cannot get ExtJS + ExtGwt working at all.
My setup is:-
. Intel Dual Core 2.13 GHz
. RAM 3.24 GByte
. MS Win XP Professional Service Pack 2. ( also ran on MS Win Server )
. GWT1.5M1 / GWT1.5M2
. Netbeans6 IDE + GWT4NB ( previously tried Eclipse, IntelliJ IDEA ).
. ExtGwt 1.0 Beta 1 and/or 2
. tried compiling the 'explorer' sample application in extgwt, but compile time errors seen.
1] spent some time modifying the 'explorer' sample extgwt beta 1 --> beta 2
2] spent time compiling with extgwt beta 1 jar
3] spent time compiling with extgwt beta 2 jar
4] now trying to compile by unincluding the beta 2 jar on classpath, but including
the extgwt beta 2 source.
. the previous point, some errors seen are :-
Loading module 'com.extjs.gxt.samples.resources.Main'
Loading inherited module 'com.google.gwt.user.User'
Loading inherited module 'com.google.gwt.core.Core'
[ERROR] Unable to load class 'com.google.gwt.dev.linker.IFrameLinker'
java.lang.ClassNotFoundException: com.google.gwt.dev.linker.IFrameLinker
this happened all times regardless of inserting
<inherits name="com.google.gwt.user.User" />
or
<inherits name="com.google.gwt.core.Core" />
in the .gwt.xml.
--> I think this is because of the GWT1.5M2 not being supported ( ?? )
Back on Gwt1.5M1 with the source of extgwt 1.0 beta 2 I see that there are errors in the
source of beta 2 ( ?? is this right, can anyone explain please ?? )
1] in file com.extjs.gxt.ui.client.core.El.java function insertBefore :-
public El insertBefore(Element before) {
before.getParentElement().insertBefore(dom, before);
return this;
}
the Element object before, according to its definition is the com.google.gwt.user.client.Element package, so in API does not have
the getParentElement() method. Or should it be another Element object/package???
2] in file com.extjs.gxt.ui.client.widget.tree.TreeItemUI.java function render :-
public void render(Element target, int index) {
if (item.root) return;
item.setElement(template.create());
item.el.insertInto(target, index);
itemEl = item.el.firstChild();
El el = item.el;
Element td = el.selectNode("td:first-child").dom;
indentEl = td.getFirstChildElement().cast();
jointEl = td.getNextSiblingElement().cast();
jointDivEl = jointEl.getFirstChild().cast();
checkEl = jointEl.getNextSiblingElement().getNextSiblingElement().cast();
checkDivEl = checkEl.getFirstChild().cast();
iconEl = checkEl.getNextSibling().cast();
iconDivEl = iconEl.getFirstChild().cast();
textEl = iconEl.getNextSiblingElement().cast();
textSpanEl = textEl.getFirstChildElement().cast();
Element tbl = el.dom.getFirstChildElement().cast();
containerEl = new El(DOM.getNextSibling(tbl));
again the Element td, according to the definition is com.google.gwt.user.client.Element package which, does not have getFirstChildElement(), getNextSiblingElement() {etc}
basically if someone could tell me either
A) what setup / packages / versions is required to successfully use ExtJS + Gwt + ExtGwt
OR
B) what setup using ExtGwt JAR or source to successfully use ExtJS + Gwt + ExtGwt
then it would be much appreciated & we would include this into our commercial product & buy licenses.
Many Thanks.
Bill Sullivan.
Have tried this with GWT1.5M2 and now back to GWT1.5M1.
. Regular Gwt widget apps work perfectly, even used Async + GWT RPC JSON.
. Regular ExtJS widgets work perfectly, even used AJAX JSON calls to JSP.
. Cannot get ExtJS + ExtGwt working at all.
My setup is:-
. Intel Dual Core 2.13 GHz
. RAM 3.24 GByte
. MS Win XP Professional Service Pack 2. ( also ran on MS Win Server )
. GWT1.5M1 / GWT1.5M2
. Netbeans6 IDE + GWT4NB ( previously tried Eclipse, IntelliJ IDEA ).
. ExtGwt 1.0 Beta 1 and/or 2
. tried compiling the 'explorer' sample application in extgwt, but compile time errors seen.
1] spent some time modifying the 'explorer' sample extgwt beta 1 --> beta 2
2] spent time compiling with extgwt beta 1 jar
3] spent time compiling with extgwt beta 2 jar
4] now trying to compile by unincluding the beta 2 jar on classpath, but including
the extgwt beta 2 source.
. the previous point, some errors seen are :-
Loading module 'com.extjs.gxt.samples.resources.Main'
Loading inherited module 'com.google.gwt.user.User'
Loading inherited module 'com.google.gwt.core.Core'
[ERROR] Unable to load class 'com.google.gwt.dev.linker.IFrameLinker'
java.lang.ClassNotFoundException: com.google.gwt.dev.linker.IFrameLinker
this happened all times regardless of inserting
<inherits name="com.google.gwt.user.User" />
or
<inherits name="com.google.gwt.core.Core" />
in the .gwt.xml.
--> I think this is because of the GWT1.5M2 not being supported ( ?? )
Back on Gwt1.5M1 with the source of extgwt 1.0 beta 2 I see that there are errors in the
source of beta 2 ( ?? is this right, can anyone explain please ?? )
1] in file com.extjs.gxt.ui.client.core.El.java function insertBefore :-
public El insertBefore(Element before) {
before.getParentElement().insertBefore(dom, before);
return this;
}
the Element object before, according to its definition is the com.google.gwt.user.client.Element package, so in API does not have
the getParentElement() method. Or should it be another Element object/package???
2] in file com.extjs.gxt.ui.client.widget.tree.TreeItemUI.java function render :-
public void render(Element target, int index) {
if (item.root) return;
item.setElement(template.create());
item.el.insertInto(target, index);
itemEl = item.el.firstChild();
El el = item.el;
Element td = el.selectNode("td:first-child").dom;
indentEl = td.getFirstChildElement().cast();
jointEl = td.getNextSiblingElement().cast();
jointDivEl = jointEl.getFirstChild().cast();
checkEl = jointEl.getNextSiblingElement().getNextSiblingElement().cast();
checkDivEl = checkEl.getFirstChild().cast();
iconEl = checkEl.getNextSibling().cast();
iconDivEl = iconEl.getFirstChild().cast();
textEl = iconEl.getNextSiblingElement().cast();
textSpanEl = textEl.getFirstChildElement().cast();
Element tbl = el.dom.getFirstChildElement().cast();
containerEl = new El(DOM.getNextSibling(tbl));
again the Element td, according to the definition is com.google.gwt.user.client.Element package which, does not have getFirstChildElement(), getNextSiblingElement() {etc}
basically if someone could tell me either
A) what setup / packages / versions is required to successfully use ExtJS + Gwt + ExtGwt
OR
B) what setup using ExtGwt JAR or source to successfully use ExtJS + Gwt + ExtGwt
then it would be much appreciated & we would include this into our commercial product & buy licenses.
Many Thanks.
Bill Sullivan.