PDA

View Full Version : Problem with ExtGwt1.0 beta 2 with ExtJS and Gwt ???



BillAtSDC
2 May 2008, 7: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.

gslender
2 May 2008, 1:49 PM
I could be wrong, but I don't think you are supposed to be trying to use ExtJS and ExtGWT together - whilst they deliver similar results (a UI in JS for the browser) they do so in very different ways...

Why do you need to use ExtGWT with ExtJS ???

urban.novak
3 May 2008, 11:14 AM
Since extgwt is still misses much of extjs features, it would be really usefull, if we could use extgwt and extjs together and pick from each library what's needed and works well.




Why do you need to use ExtGWT with ExtJS ???

gslender
3 May 2008, 1:42 PM
If you want to operate like that (glue the bits you need together in Javascript) then GWT-Ext is probably the better library (note that this is not ExtGWT) - that is exactly what those guys have done - glued GWT and ExtJS together.

darrellmeyer
4 May 2008, 6:24 PM
Using both Ext JS and ExtGWT should be seen as 2 different activities. You might want to try using ExtGWT by itself first. If that works, then you know you are having an issue with using both. However, I do not think this would be the case.

After looking at your post, I do not believe you have GWT 1.5 M2 on your run configuration. You probably have it on your projects classpath but it also needs to be on your run config. I am not sure what GWT4NB does, but that could be a problem point.

So, can you validate that the GWT 1.5 jars are on you run config classpath? I have not had or heard of anyone else having problems like yours with beta2. So I would guess this has to be an issue with your environment.

Gabriel Thiesen
25 Aug 2008, 9:46 AM
I have exactly the same problem but i am not using Ext Js at all. I think is something with the mac os library and the support of Ext GWT for it. I am not sure, but since i have other developers here using windows with no problem, i just came up with that conclusion.

Does anybody know how to solve this?

Any ideas i would really appreciate.