Using setAutoFocus(true) is causing WARN 'this.shouldSelectOnFocus is not a function'
Should I care? ... So far it's only been an annoyance.
In the form below, if I comment out the setAutoFocus(true) line, then I get no warning. As it is shown, I get the WARN below.
I'm using SmartGWT EE 2.5, Eclipse Helios, GWT 2.2 DevMode. So far I haven't been able to figure out if it happens in my deployed war (deployed on tomcat 7).
Should I care? ... So far it's only been an annoyance.
In the form below, if I comment out the setAutoFocus(true) line, then I get no warning. As it is shown, I get the WARN below.
I'm using SmartGWT EE 2.5, Eclipse Helios, GWT 2.2 DevMode. So far I haven't been able to figure out if it happens in my deployed war (deployed on tomcat 7).
Code:
DynamicForm form = new DynamicForm(); form.setDataSource(DataSource.get("User")); form.setAutoFocus(true);
Code:
14:50:19.344 [ERROR] [iapp] 14:50:19.334:IFCS1:WARN:Log:TypeError: this.shouldSelectOnFocus is not a function TextItem._nativeElementFocus([object HTMLInputElement], {Obj}) @ iapp/sc/modules/ISC_Forms.js:1985 FormItem.._nativeFocusHandler([object HTMLInputElement]) @ iapp/sc/modules/ISC_Forms.js:827 FormItem._nativeFocusHandler([object Event]) @ iapp/sc/modules/ISC_Forms.js:824 FormItem.focusInItem(undef) @ iapp/sc/modules/ISC_Forms.js:1561 DynamicForm.focusInItem({Obj}) @ iapp/sc/modules/ISC_Forms.js:644 DynamicForm.setFocus(true, undef) @ iapp/sc/modules/ISC_Forms.js:624 Canvas.focus() @ iapp/sc/modules/ISC_Core.js:3059 DynamicForm._delayedSetValuesFocus(null, undef) @ iapp/sc/modules/ISC_Forms.js:457 [c]Page.handleEvent(_1=>null, _2=>"idle") @ iapp/sc/modules/ISC_Core.js:1346 EventHandler._handleIdle() @ iapp/sc/modules/ISC_Core.js:1701 [c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true) @ iapp/sc/modules/ISC_Core.js:324 Timer._fireTimeout("$ir319") @ iapp/sc/modules/ISC_Core.js:1328 unnamed() @ iapp/sc/modules/ISC_Core.js:1323 unnamed() @ com.smartgwt.client.core.JsObject$SGWT_WARN: 14:50:19.334:IFCS1:WARN:Log:TypeError: this.shouldSelectOnFocus is not a function TextItem._nativeElementFocus([object HTMLInputElement], {Obj}) @ iapp/sc/modules/ISC_Forms.js:1985 FormItem.._nativeFocusHandler([object HTMLInputElement]) @ iapp/sc/modules/ISC_Forms.js:827 FormItem._nativeFocusHandler([object Event]) @ iapp/sc/modules/ISC_Forms.js:824 FormItem.focusInItem(undef) @ iapp/sc/modules/ISC_Forms.js:1561 DynamicForm.focusInItem({Obj}) @ iapp/sc/modules/ISC_Forms.js:644 DynamicForm.setFocus(true, undef) @ iapp/sc/modules/ISC_Forms.js:624 Canvas.focus() @ iapp/sc/modules/ISC_Core.js:3059 DynamicForm._delayedSetValuesFocus(null, undef) @ iapp/sc/modules/ISC_Forms.js:457 [c]Page.handleEvent(_1=>null, _2=>"idle") @ iapp/sc/modules/ISC_Core.js:1346 EventHandler._handleIdle() @ iapp/sc/modules/ISC_Core.js:1701 [c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true) @ iapp/sc/modules/ISC_Core.js:324 Timer._fireTimeout("$ir319") @ iapp/sc/modules/ISC_Core.js:1328 unnamed() @ iapp/sc/modules/ISC_Core.js:1323 unnamed() @ 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.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:680)
Comment