google-code-export / tatami

Automatically exported from code.google.com/p/tatami
1 stars 1 forks source link

too much recursion on Grid example #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an empty project
2. Install tatami 1.4 on the project
3. Insert <inherits name="com.objetdirect.tatami.Tatami"/> in the gwt.xml file
4. Erase the default code on the onModuleLoad and write this instead:

public void onModuleLoad() {
        Grid grid = new Grid(); 
        grid.addColumn("Name"); 
        grid.addColumn("Phone Number");     
        Object[] row1 = {"John Doe" , "0123456789" }; 
        Object[] row2 = {"Jane Doe" , "9876543210" }; 
        grid.addRow(row1); 
        grid.addRow(row2); 
        grid.setWidth("300px"); 
        grid.setHeight("200px"); 
        RootPanel.get("main").add(grid); 
        grid.updateGrid();
}

What is the expected output? The grid?
What do you see instead? Nothing, and the log in the Hosted window reports
this error:

ERROR] ERROR
com.google.gwt.core.client.JavaScriptException: (InternalError): too much
recursion
 fileName: http://localhost:8000/testtatami/dojo/dojo.js
 lineNumber: 16
 stack: ("postMixInProperties",(function () {this.inherited(arguments);var
_9 = dojo.i18n.getLocalization("dijit", "loading",
this.lang);this.loadingMessage =
dojo.string.substitute(this.loadingMessage, _9);this.errorMessage =
dojo.string.substitute(this.errorMessage, _9);if (this.srcNodeRef &&
this.srcNodeRef.style.height) {this.height =
this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,
true);}),[object
Object],false)@http://localhost:8000/testtatami/dojo/dojo.js:16

("postMixInProperties",(function () {this.inherited(arguments);var _9 =
dojo.i18n.getLocalization("dijit", "loading",
this.lang);this.loadingMessage =
dojo.string.substitute(this.loadingMessage, _9);this.errorMessage =
dojo.string.substitute(this.errorMessage, _9);if (this.srcNodeRef &&
this.srcNodeRef.style.height) {this.height =
this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,
true);}),[object
Object],false)@http://localhost:8000/testtatami/dojo/dojo.js:16

("postMixInProperties",(function () {this.inherited(arguments);var _9 =
dojo.i18n.getLocalization("dijit", "loading",
this.lang);this.loadingMessage =
dojo.string.substitute(this.loadingMessage, _9);this.errorMessage =
dojo.string.substitute(this.errorMessage, _9);if (this.srcNodeRef &&
this.srcNodeRef.style.height) {this.height =
this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,
true);}),[object
Object],false)@http://localhost:8000/testtatami/dojo/dojo.js:16
.
.
.

What version of the product are you using? tatami 1.4
On what operating system? ubuntu 9.10 with GWT 1.7.0

Please provide any additional information below.

Original issue reported on code.google.com by gianluca...@gmail.com on 19 Nov 2009 at 10:26

GoogleCodeExporter commented 9 years ago
Hi, can you test your code without set setWidth() instruction. 
I will fix this issue as soon as possible. 

Original comment by vgrass...@gmail.com on 23 Nov 2009 at 12:39

GoogleCodeExporter commented 9 years ago
Hi,
  thanks for the reply. I've tested without the setWidth() instruction and it gives
me the same error. Without SetWidht() and setHeight() it gives me the same 
behaviour.
I don't think there is much left to comment out in order to isolate the error, 
sorry :(

Original comment by gianluca...@gmail.com on 23 Nov 2009 at 3:02