Re: Error " this.appendChild is not a function"?

2013-02-17 Thread Ed
Thanks for the tips. I just changed my code to: while (element.getLastChild() != null && element.getLastChild() instanceof Element) { element.removeChild(element.getLastChild()); } But got the same error. What do you mean by 1)? I don't see any null fields being used when I debug in d

Re: Error " this.appendChild is not a function"?

2013-02-17 Thread Sebastián Gurin
hope the following two tips are of help: 1 ) that sounds like a null pointer exception (natively). you are trying to invoke a native field of a null value 2 ) removing all childrens iterating through them can be very tricky. See a correct way of doing it manually : https://code.google.com/p/g

Error " this.appendChild is not a function"?

2013-02-17 Thread Ed
When I override the method SimplePanel.clear() to remove all elements of the contained element in SimplePanel, and then add a widget throug setWidget() I receive the error (see the complete error below: --- this.appendChild is not a function"? I remove all element after SimplePanel performs