Announcement

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

    CheckboxItem value is returning false all the time

    I have an issue where I display a CheckboxItem contained in a DynamicForm and it works find returning true and false when checked and unchecked. Then I create another DynamicForm with a new CheckboxItem and the new CheckboxItem works properly returning true and false when checked and unchecked.

    Code:
    includeMvwap.addChangedHandler(new ChangedHandler() {
                public void onChanged(ChangedEvent event) {
                    GWT.log("includeMvwap:" + event.getSource());
                    GWT.log("includeMvwap value:" + includeMvwap.getValue());
                    if(includeMvwap.getValue() == null || !Boolean.parseBoolean(includeMvwap.getValue().toString())) {
                        isMVWAPSelected = false;
                        GWT.log("includeMvwap: FALSE", null);
                        colorKeyPanel.removeKey("Moving Average");
                        refreshChartPanel();
                   }
                   else {
                        isMVWAPSelected = true;
                        GWT.log("includeMvwap: TRUE");
                        colorKeyPanel.addKey("Moving Average", "FF9900");
                        refreshChartPanel();
                   }
                }
            });
    Now when I switch back to the first DynamicForm the CheckboxItem returns a value of 'false' when the box is checked and unchecked.

    Any ideas?

    #2
    Please post a minimal standalone testcase with an onModuleLoad() if you think you've found a bug.

    Comment


      #3
      I found my issue, thanks.

      Comment

      Working...
      X