Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    this.form is null when calling setValueMap on ComboBoxItem

    I’m using SmartGWT 5.0-p20141231.

    I’m making a call to setValueMap on ComboBoxItem.

    I get the following exception and stack trace:

    com.google.gwt.core.client.JavaScriptException: (TypeError) @com.smartgwt.client.widgets.form.fields.FormItem::setValueMapMethod(Lcom/google/gwt/core/client/JavaScriptObject;)([JavaScript object(11224)]): this.form is null
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304)
    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
    at com.smartgwt.client.widgets.form.fields.FormItem.setValueMapMethod(FormItem.java)

    Under what circumstances would this exception happen?

    Where can I look to find the root cause of this?

    #2
    Hi dbscott525,

    it's only a guess, but is the ComboBoxItem member of a DynamicForm, set via setFields()?

    Even a single FormItem has to be member of a DynamicForm as far as I remember. I'm pretty sure that this is also somewhere in the docs.

    Best regards
    Blama

    Comment


      #3
      Originally posted by Blama View Post
      Hi dbscott525,

      it's only a guess, but is the ComboBoxItem member of a DynamicForm, set via setFields()?

      Even a single FormItem has to be member of a DynamicForm as far as I remember. I'm pretty sure that this is also somewhere in the docs.

      Best regards
      Blama
      Thanks.

      Your comments led to find where my application logic bug was. I’m guessing that what happened is the error reporting was improved in SmartGWT and what used to be ignored was reported with a user alert.

      Comment

      Working...
      X