SmartGWT 4.1d LGPL 2013-11-07
When I have text fields that turn into static text items when can edit = false, SmartGWT generates warnings.
Everything does work OK, but these warnings could be a minor internal bug.
Simple (not complete) code:
11:34:09.782 [ERROR] [cloudview1] 11:34:09.781:TMR0:WARN:TextItem:isc_TextItem_4[itemName]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
com.smartgwt.client.core.JsObject$SGWT_WARN: 11:34:09.781:TMR0:WARN:TextItem:isc_TextItem_4[itemName]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
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:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:724)
When I have text fields that turn into static text items when can edit = false, SmartGWT generates warnings.
Everything does work OK, but these warnings could be a minor internal bug.
Simple (not complete) code:
Code:
TextItem editableName = new TextItem("editableName"); editableName.setReadOnlyDisplay(ReadOnlyDisplayAppearance.STATIC); editableName.addClickHandler(clickHandler); //defined earlier editableName.addKeyPressHandler(kpHandler); //defined earlier //later, in an event handler unrelated to the form item, when some data arrives editableName.setValue("data from elsewhere"); editableName.setCanEdit(false);
11:34:09.782 [ERROR] [cloudview1] 11:34:09.781:TMR0:WARN:TextItem:isc_TextItem_4[itemName]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
com.smartgwt.client.core.JsObject$SGWT_WARN: 11:34:09.781:TMR0:WARN:TextItem:isc_TextItem_4[itemName]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
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:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:724)
Comment