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.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:526)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(Meth odAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(Met hodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invok e(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reac tToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.proc essConnection(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.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:526)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(Meth odAdaptor.java:105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(Met hodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invok e(OophmSessionHandler.java:172)
at com.google.gwt.dev.shell.BrowserChannelServer.reac tToMessages(BrowserChannelServer.java:293)
at com.google.gwt.dev.shell.BrowserChannelServer.proc essConnection(BrowserChannelServer.java:547)
at com.google.gwt.dev.shell.BrowserChannelServer.run( BrowserChannelServer.java:364)
at java.lang.Thread.run(Thread.java:724)