lucianobroussal / gwtwindowmanager

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

DefaultGFrame.buildGui run myContent.onload Twice #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. write a custom widget, in the onLoad method, Window.alert("onLoad()");
2. add the custom widget to DefaultGFrame by using setContent(widget);
3. run and observe the onLoad() message display twice.

What is the expected output? What do you see instead?
onload should be run once only

solution: 
super.setWidget(ui);

should be moved to right after:

this.ui = new FlexTable(); 

What version of the product are you using? On what operating system?
GWT 1.4.10 + GWM 0.6.6

Please provide any additional information below.

Original issue reported on code.google.com by kelvin...@gmail.com on 13 Jun 2007 at 9:06