shaungyuehuoniao / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 2 forks source link

Frame inside a TabPanel inside a Viewport causes exception #258

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I can't seem to get your example with Bottom Tab Panel with a Frame inside it.  
I get a null 
exception on both windows and mac.  Here is the exception 
com.google.gwt.core.client.JavaScriptException: JavaScript TypeError exception: 
Null value
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:481)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:270)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:137)
    at com.gwtext.client.widgets.TabPanel.activateRendered(TabPanel.java:129)
    at com.gwtext.client.widgets.TabPanel.activate(TabPanel.java:123)
    at com.gwtext.sample.showcase2.client.ScreenManager.showScreen(ScreenManager.java:179)
    at com.gwtext.sample.showcase2.client.ScreenManager$1.onClick(ScreenManager.java:144)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)

Original issue reported on code.google.com by chan.ka...@gmail.com on 4 Mar 2008 at 4:29

GoogleCodeExporter commented 8 years ago
Does the example running on the site 
(http://www.gwt-ext.com/demo/#bottomTabPanel) 
work fine for you?

Original comment by matthewl...@gmail.com on 4 Mar 2008 at 2:40

GoogleCodeExporter commented 8 years ago
Yes, the sample works great for me on all systems... ms ie, ms ff, osx ff, osx 
saf.  But I can't get the source in 
the sample working in hosted mode without a null exception in ms ie, ms ff and 
it won't even compile and get to 
running it in hosted mode on osx (leopard).  It works with just the Frame 
inside the Viewport, TabPanels work 
fine inside the Viewport.  In general I think almost everything that is from 
the gwt-ext package is working.  But 
Frame is from gwt and I'm wondering if something related to that is causing an 
issue.  I've tried using gwt-ext 
2.0.1, feb29 build, mar2 build with ext 2.0.1 and ext 2.0.2 and vairous 
permutations of that.  I have the 
Showcase2 loading fine as well, except that the bottomTabPanel page doesn't 
work.  I'm willing to switch to any 
platform and version as its a new project but I really need Frame working 
inside tabs.  Thanks!

Original comment by chan.ka...@gmail.com on 4 Mar 2008 at 8:21

GoogleCodeExporter commented 8 years ago
Which version of GWT are you using? 1.4.61?

Original comment by matthewl...@gmail.com on 4 Mar 2008 at 8:25

GoogleCodeExporter commented 8 years ago
Yes, I'm using the latest version 1.4.61 for windows and the special 1.4 
leopard build for osx

Original comment by chan.ka...@gmail.com on 4 Mar 2008 at 9:30

GoogleCodeExporter commented 8 years ago
Have you tried running it from your web browser too (not in hosted mode)? 
Another 
thing you could try is download the latest code (from http://www.gwt-
ext.com/builds/gwt-ext/ or SVN), in case it's a bug that was already fixed.

Original comment by matthewl...@gmail.com on 4 Mar 2008 at 10:28

GoogleCodeExporter commented 8 years ago
ok thanks i'll give that a try, but what is the setup that has everything 
working? 
winxp+gwt1.4.61+mar2buildofgwt-ext+ext2.02+jdk?  I just want to know what you 
guys are using for 
showcase2 so I can use the same set.  Thanks for your help

Original comment by chan.ka...@gmail.com on 5 Mar 2008 at 12:41

GoogleCodeExporter commented 8 years ago
well, I checked out the code and got the source building.  ant built 
successfully and then I load the output 
Showcase2.html and I can get to load the main screen fine.  It seems like trees 
isn't working and in the bottom 
tabs example and nothing is loaded.  So I'm totally lost now...this is on osx 
leopard with both safari3 and 
firefox2 linking to the gwt-users built for leopard.  I'll try this on XP and 
see...

Original comment by chan.ka...@gmail.com on 5 Mar 2008 at 4:48

GoogleCodeExporter commented 8 years ago
GWT 1.4.61
mar2buildofgwt
Ext 2.0.1

Its important that you use Ext 2.0.1. There is an issue with Ext 2.0.2 which 
we're
looking into.

Original comment by sanjiv.j...@gmail.com on 5 Mar 2008 at 5:03

GoogleCodeExporter commented 8 years ago
ok thanks Sanjiv... cause I checked out trunk and still have the same issue on 
XP.  I assume this is working on 
XP? Thanks

Original comment by chan.ka...@gmail.com on 5 Mar 2008 at 11:51

GoogleCodeExporter commented 8 years ago
here is my result using Gwt 1.4.61, mar2buildgwt, ext2.0.1,winxp sp2, jdk5 for 
the BottomTabPanel example

- running in hosted mode inside eclipse (Line 65, Error: 'dom' is null or not 
an object), this error comes by and 
then if you say ok everything seems to still work.
- running compiled works fine in IE7, FF2 but nothing shows up in Safari3 (any 
ideas?, cause the the gwt-
ext\demo site works fine in Safari3, maybe there is a difference between 
hosting in web server vs opening in file 
system?) 

Original comment by chan.ka...@gmail.com on 7 Mar 2008 at 12:08

GoogleCodeExporter commented 8 years ago
I had this new Viewport(panel); returning null once.

And the problem had nothing to do with the Viewport itself.

You need to debug more, to found the real problem...
Sometimes it is a real pain...

Original comment by micg...@gmail.com on 13 Jun 2008 at 1:29