Hi All,
I am just trying out the example code given in the book named
"Google Web Toolkit Solutions-More cool and useful stuff" for
resizable columns in FlexGrid.
I have created (carefully!!) all the required classes as like
mentioned in the book.
When I run the application, its launching without any problem. The
moment, when I try to resize any column, I am getting the following
exception displayed in the Shell window
[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
number: -2147024809
description: Invalid argument.
at com.google.gwt.dom.client.Element$.setPropertyString$(Native
Method)
at com.google.gwt.user.client.DOM.setElementProperty(DOM.java:1088)
at com.google.gwt.user.client.ui.HTMLTable$ColumnFormatter.setWidth
(HTMLTable.java:411)
at com.ibsplc.client.ui.table.EasyFlexTableResizable.setColumnWidth
(EasyFlexTableResizable.java:43)
at com.ibsplc.client.ui.table.ColumnResizeListener.onResize
(ColumnResizeListener.java:19)
at com.ibsplc.client.ui.ResizeListenerCollection.fireResize
(ResizeListenerCollection.java:12)
at com.ibsplc.client.ui.table.ResizableCellPanel.onMouseMove
(ResizableCellPanel.java:94)
at com.google.gwt.user.client.ui.MouseListenerCollection.fireMouseMove
(MouseListenerCollection.java:122)
at
com.google.gwt.user.client.ui.MouseListenerCollection.fireMouseEvent
(MouseListenerCollection.java:81)
at com.google.gwt.user.client.ui.Label.onBrowserEvent(Label.java:168)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:
1287)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
I have checked the method setColumnWidth, it was like below.
public void setColumnWidth(int column, int width) {
getColumnFormatter().setWidth(column,width + "px");
}
And I knew that setWidth method args are int and String. so on the
safer side I had changed the args like below.
public void setColumnWidth(int column, int width) {
getColumnFormatter().setWidth(column,Integer.toString(width) + "px");
}
But still I am getting the same exception. Any one experienced such
issue?
Or please advise what is wrong in this case
Thanks in advance
Suren
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---