Announcement

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

    SelectItem.setValueMap throwing this.formItem Exception

    smartgwt 2.4
    firefox 4

    Hey,

    When trying to call setValueMap on a selectItem, I get this exception. It happens the second time I click on the select item.

    INFO: Click.
    INFO: Click.
    ERROR: 13:11:08.623:RDQ2:WARN:Log:TypeError: this.formItem is undefined
    PickListMenu._formatCellValue("one", {Obj}, {Obj}, 0, 0)
    ListGrid.getCellValue(record=>{Obj}, rowNum=>0, colNum=>0, gridBody=>{Obj})
    anonymous({Obj}, 0, 0, {Obj})
    GridRenderer._getCellValue({Obj}, 0, 0)
    GridRenderer.getTableHTML()

    Here's the code

    Code:
        public void onModuleLoad() {
            VLayout layout = new VLayout();
            layout.setWidth("800");
            layout.setHeight("400");
    
            final DynamicForm form = new DynamicForm();
            form.setWidth(400);
            form.setHeight(400);
            final SelectItem selectItem = new SelectItem("test", "Test");
            form.setItems(selectItem);
    
            selectItem.addClickHandler(new com.smartgwt.client.widgets.form.fields.events.ClickHandler() {
                public void onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent clickEvent) {
                    GWT.log("Click");
                    form.getField("test").setValueMap("one", "two");
                }
            });
            layout.addMember(form);
            RootPanel.get().add(layout);
        }
    Any help is greatly appreciated.

    Thanks,
    John

    #2
    We're not seeing this in the latest codebase - can you try a nightly from here and let us know if you're still seeing the issue

    Thanks
    Isomorphic Software

    Comment


      #3
      The nightly build fixes this, thanks.

      Since this is a production app I will probably need to wait until the next official release. Any idea when this will be?

      Comment

      Working...
      X