Got rid of the problem by adding a inherits module : <inherits name='com.gwtext.ColumnTree' />
Next, I copied the ColumnNodeUI.js file to the js/ext directory and added this line to app.gwt.xml file : <script src="../js/ext/ColumnNodeUI.js" /> After doing this I did not get the exception. But now I am trying to display the column tree inside a Window. So this is wat i do : - create the window - window.add(colTree); - window.show(); window.show again throws a null pointer exception. :(. If I add anything else to this window instance It works fine, only when I add the colTree it blows. Any idea why this would this happen. On Apr 29, 5:10 pm, [email protected] wrote: > I got the same error at first and then I don't know how it got resolved, try > addind the columntree to the inherited module search into the web what is > path... > > Regards > Sent from my BlackBerry® from Iusacell wireless device from Iusacell > > > > -----Original Message----- > From: Neo <[email protected]> > > Date: Wed, 29 Apr 2009 04:07:34 > To: GWT-Ext Developer Forum<[email protected]> > Subject: Re: Object expected exception in ColumnTree init > > I just tried the debugger. Put a breakpoint on the line : > final ColumnTree coltree = new ColumnTree(); > > The exception which I see now is ClassNotFoundException. > > I have added gwtext-2.0.5/gwtext.jar to my Project's build path. > > Any idea why this is happening ? > Please help me. > > On Apr 29, 12:50 pm, Neo <[email protected]> wrote: > > I am trying to use a ColumnTree in my application. But I get the > > following exception : > > > Caused by: com.google.gwt.core.client.JavaScriptException: > > (TypeError): Object expected > > number: -2146823281 > > description: Object expected > > at com.gwtext.client.widgets.tree.ColumnTree.init(Native Method) > > > The line which throws this exception is : > > final ColumnTree coltree = new ColumnTree(); > > > This is how my App.GWT.XML file looks like : > > > <inherits name='com.google.gwt.user.User'/> > > <inherits name='com.gwtext.GwtExt' /> > > <inherits name='com.gwtextux.GwtExtUx' /> > > > <stylesheet src="../js/ext/resources/css/ext-all.css" /> > > <script src="../js/ext/adapter/ext/ext-base.js"></script> > > <script src="../js/ext/ext-all.js" /> > > > I read somewhere that I need to copy the ColumnNodeUI.js file to my js/ > > ext folder. I did that but I still get the exception. > > > Please help me in resolving this issue.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
