gslender / ofcgwt

Automatically exported from code.google.com/p/ofcgwt
0 stars 0 forks source link

Hosted mode JavaScript Runtime error: "'null' is null or not an object" for OFCGWT 1.3.0 with GWT 1.5.3 and GXT1.2.4 #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a chart to a container
2. Remove the chart (with a call to remove(...) or removeAll()
3. Javascript error is thrown in Host mode of GWT 1.5.3

What is the expected output? What do you see instead?
Expected no error. Get a javascript error.

What version of the product are you using? On what operating system?
OFCGWT 1.3.0
GXT 1.2.4
GWT 1.5.3

Please provide any additional information below.

The line that causes the error to appear is a class to the GWT DOM method:

- DOM.removeChild(parent, elem);

In my case this occurs in the GXT Container class in the following code:

if (rendered) {
  Element elem = component.getElement();
  Element parent = DOM.getParent(elem);
  if (parent != null) {
// LINE BELOW CAUSES ISSUE
    DOM.removeChild(parent, elem);
  }
}

Note that it does not occur (when compiled) in FireFox 3.0.10 or IE 6 SP2

Original issue reported on code.google.com by bogusgge...@gmail.com on 20 May 2009 at 3:38

GoogleCodeExporter commented 9 years ago
GXT 2.x now has OFC type flash chart included

Original comment by gslen...@gmail.com on 11 Jun 2009 at 9:03

GoogleCodeExporter commented 9 years ago
Due to the breaking API changes in GXT 2.0, 1.2.4 will still be used for a 
while.
Also the fact that GXT 2.0 GA has non been released yet contributes to our 
delay. 

I noticed that there was no 1.3.0 tag in SVN. Tagging could help those in 
previous
versions move forward and encourage community input and bug fixing. Obviously 
the
time issues in maintaining a code base are non-trivial, and your work in the 
ofcgwt
project is much appreciated!

Just have to find space in the next iteration for the GXT 2.0 upgrade (after 
it's
released).

Original comment by bogusgge...@gmail.com on 12 Jun 2009 at 1:30

GoogleCodeExporter commented 9 years ago
ok, try moving to ofcgwt 2.x 

I know its marked as beta, but the refactoring should be better and a lot of the
concepts were shared in both the GXT and OFCGWT versions - ie they share similar
redesigned approaches for fixing bugs like this.

Upgrade man ;-)

Original comment by gslen...@gmail.com on 12 Jun 2009 at 1:55