Hi,
I have a Tab with a dynamicForm. I generate FormItems on demand.
When I draw the tab first time the tab is rendered correctly.
When I close and reopen the tab and some FormItems have the same name as they had previously then there stays its value prefilled from the previous tab.
When I create the Tab I create a new object tab = new Tab(); as well as ItemForms item = new SelectItem(...); And yet it somehow reuses the object I assumed garbage collected.
I tried to call formItem.setValue(); This only wotks if there is not null value.
If I try to call formItem.clearValue(); then I get an exception bellow.
Anyway, when I create a new object I shouldn't need to call clearValue. I expect a new object, right? What do I do wrong? I use the official SmartGWT 2.5 release.
best regards,
Zdary
I have a Tab with a dynamicForm. I generate FormItems on demand.
When I draw the tab first time the tab is rendered correctly.
When I close and reopen the tab and some FormItems have the same name as they had previously then there stays its value prefilled from the previous tab.
When I create the Tab I create a new object tab = new Tab(); as well as ItemForms item = new SelectItem(...); And yet it somehow reuses the object I assumed garbage collected.
I tried to call formItem.setValue(); This only wotks if there is not null value.
If I try to call formItem.clearValue(); then I get an exception bellow.
Anyway, when I create a new object I shouldn't need to call clearValue. I expect a new object, right? What do I do wrong? I use the official SmartGWT 2.5 release.
best regards,
Zdary
Code:
(TypeError): self.clearValue is not a function com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) com.google.gwt.core.client.impl.Impl.apply(Impl.java) com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) sun.reflect.GeneratedMethodAccessor458.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) java.lang.Thread.run(Unknown Source)
Comment