Hi everybody
i did the upgrade to GWT 2.3.0 an SmartGWT 2.5 (at the moment it is a nightly build http://www.smartclient.com/builds/SmartGWT/2.x/LGPL/2011-08-16)
unfortunatelly a couple of things are not working just like before
for example: i use my own class WindowRecord which extends TreeNode in my TreeGrid
the executeFetch method of my datasource (extending GwtRpcDataSource) looks like this:
so the added nodes are all from type WindowRecord, if i open a folder, ths fetch is done fine, the children are added to the tree, but the node, which was opened is suddenly replaced by a ListGridRecord, so the folder is not a WindowRecord any more
all my methods handling the events try to cast the nodes to WindowRecords, which leads now to a ClassCastException...
any thoughts about this?
it looks, like i'm forced to switch back to old version
i did the upgrade to GWT 2.3.0 an SmartGWT 2.5 (at the moment it is a nightly build http://www.smartclient.com/builds/SmartGWT/2.x/LGPL/2011-08-16)
unfortunatelly a couple of things are not working just like before
for example: i use my own class WindowRecord which extends TreeNode in my TreeGrid
the executeFetch method of my datasource (extending GwtRpcDataSource) looks like this:
Code:
@Override protected void executeFetch(final DSRequest request, final DSResponse response) { final String requestId = request.getRequestId(); final WindowRecord parentNode = new WindowRecord(request.getAttributeAsJavaScriptObject("parentNode")); endpointHandler.fetch(parentNode, new AbstractAsyncCallback<WindowRecord[]>() { public void onSuccess(WindowRecord[] result) { response.setData(result); processResponse(requestId, response); } public void onFailure(Throwable caught, boolean alreadyHandled) { response.setStatus(RPCResponse.STATUS_FAILURE); processResponse(requestId, response); } }); }
all my methods handling the events try to cast the nodes to WindowRecords, which leads now to a ClassCastException...
any thoughts about this?
it looks, like i'm forced to switch back to old version
Comment