SmartClient Version: SNAPSHOT_v8.3d_2012-08-29/PowerEdition Deployment (built 2012-08-29)
I just upgraded to this new 3.1d nightly build and see that the DataArrivedEvent api has changed. The methods getStartRow() and getEndRow() have been renamed to getStartRecord()/getEndRecord(). I've made those changes in our code but I am receiving this js error now on code that was working with the old methods.
Here is the snippet of code that is getting the error.
And here is the error stack.
I just upgraded to this new 3.1d nightly build and see that the DataArrivedEvent api has changed. The methods getStartRow() and getEndRow() have been renamed to getStartRecord()/getEndRecord(). I've made those changes in our code but I am receiving this js error now on code that was working with the old methods.
Here is the snippet of code that is getting the error.
Code:
deliveryGrid.addDataArrivedHandler(new DataArrivedHandler() { @Override public void onDataArrived(DataArrivedEvent event) { refreshLineUnitTotals(); deliveryGrid.setHilites(getDeliveryHilites()); // Refresh the expansion grid for any rows that are // expanded. for (int rowNum = event.getStartRecord(); rowNum < event .getEndRecord(); rowNum++) { ListGridRecord record = deliveryGrid.getRecord(rowNum); if (record.getAttributeAsBoolean("expanded")) { deliveryGrid.collapseRecord(record); deliveryGrid.expandRecord(record); } } } });
Code:
Caused by: com.google.gwt.dev.shell.HostedModeException: Something other than an int was returned from JSNI method '@com.smartgwt.client.widgets.grid.events.DataArrivedEvent::getStartRecord()': JS value of type undefined, expected int at com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266) at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:247) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75) at com.smartgwt.client.widgets.grid.events.DataArrivedEvent.getStartRecord(DataArrivedEvent.java) at com.islandpacific.gui.client.purchasing.productionorder.DeliveryTab$6.onDataArrived(DeliveryTab.java:316) at com.smartgwt.client.widgets.grid.events.DataArrivedEvent.dispatch(DataArrivedEvent.java:100) at com.smartgwt.client.widgets.grid.events.DataArrivedEvent.dispatch(DataArrivedEvent.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
Comment