PDA

View Full Version : [FIXED] 2.0.1 BufferView with widgets



markmacumber
23 Jul 2009, 6:48 PM
First off, I would like to say a big thanks to getting 2.0.1 out so fast after 2.0, its good to see quick feedback to the community.

- Detailed description of the problem:
I raised a bug in regards to using a BufferView on a grid that contains widgets (http://extjs.com/forum/showthread.php?t=74578).

Although, the initial issue of widgets not showing up is fixed, it seems that there are still a couple of issues with it.

Firstly, when I use the BufferView as the View of my grid:


BufferView bufferedView = new BufferView();
bufferedView.setRowHeight(26);
bufferedView.setScrollDelay(50);
associationGrid.setView(bufferedView);

The column widths change to be different sizes than that of the same grid with no BufferView. In my case, the columns are too wide and I get horizontal scrolling in my grid, which is no good.

The second issue, which I think is FAR more concerning, is that when I call the "reconfigure" method on my grid, I get a com.google.gwt.core.client.JavaScriptException error, with the stacktrace of:


[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): this.appendChild is not a function
fileName: jar:file:/home/Projects/workspace/cmtapps/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/dom/client/Node.java
lineNumber: 70
stack: ([object HTMLTableElement])@jar:file:/home/Projects/workspace/cmtapps/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/dom/client/Node.java:70
private void com.google.gwt.http.client.Request.fireOnResponseReceived(com.google.gwt.http.client.RequestCallback)([object gwt_nativewrapper_class])@:0
()@jar:file:/home/Projects/workspace/cmtapps/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/http/client/XMLHTTPRequest.java:253
@:0

at com.google.gwt.dom.client.Node$.appendChild$(Native Method)
at com.extjs.gxt.ui.client.core.El.appendChild(El.java:283)
at com.extjs.gxt.ui.client.core.El.insertInto(El.java:1552)
at com.extjs.gxt.ui.client.widget.grid.GridView.renderWidgets(GridView.java:1607)
at com.extjs.gxt.ui.client.widget.grid.GridView.refresh(GridView.java:542)
at com.extjs.gxt.ui.client.widget.grid.Grid.reconfigure(Grid.java:476)
...
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:215)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:264)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:236)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:227)

- GXT version: 2.0.1

- Host mode / web mode / both

- Browser and version: Mozilla 3.0.11

- Operating System: Ubuntu, 8.04

sven
24 Jul 2009, 2:11 AM
Please post a valid testcase for this as descripted in the bug forum guidelines

sven
24 Jul 2009, 3:41 AM
Ok, got it. For future posts please always supply a valid testcase. Fixed in SVN.