I have 3 relatively simple SelectItems on a form. Here is the code that sets them up. (Using SmartGWT 2.3 nightly from 12th August with Firefox)
They all generate this WARN message in the log when the form is displayed. What is the warning message trying to tell me? The form to which they are being added does have a datasource assigned and all of the referenced fields do exist in that datasource. The SelectItems actually work but I'm having other problems when trying to extend their behavior so I'm trying to eliminate these WARNings before adding additional attributes.
Code:
SelectItem hven = new SelectItem("HVEN"); hven.setSortField("VVEN"); hven.addChangedHandler(new ChangedHandler() { @Override public void onChanged(ChangedEvent event) { setVendorDefaults(); } }); formFields.add(hven); SelectItem hstr = new SelectItem("HSTR"); Criteria hstrCriteria = new Criteria("SARC", "Y"); hstrCriteria.addCriteria(new Criteria("SAOR", "Y")); hstr.setPickListCriteria(hstrCriteria); hstr.setSortField("SSTR"); formFields.add(hstr); SelectItem hdpt = new SelectItem("HDPT"); hdpt.setSortField("DDPT"); formFields.add(hdpt);
Code:
09:29:42.108 [ERROR] [ipgui] 09:29:42.107:XRP1:WARN:PickListMenu:isc_PickListMenu_1:fields and completeFields are null and there is no DataSource com.smartgwt.client.core.JsObject$SGWT_WARN: 09:29:42.107:XRP1:WARN:PickListMenu:isc_PickListMenu_1:fields and completeFields are null and there is no DataSource at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at com.smartgwt.client.widgets.Canvas.show(Canvas.java) at com.islandpacific.gui.client.PoHeaderCanvas.editPo(PoHeaderCanvas.java:1926) at com.islandpacific.gui.client.PoHeaderCanvas.access$25(PoHeaderCanvas.java:1915) at com.islandpacific.gui.client.PoHeaderCanvas$43$1.execute(PoHeaderCanvas.java:1807) 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:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1713) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264) 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:188) at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source) 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:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222) at java.lang.Thread.run(Thread.java:637)
Comment