Announcement

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

    DynamicForm Item Values Not Updating on SetValue()

    Hi everyone,
    I'm experiencing an issue in SmartGWT 13.1 where calling setValue() on a DynamicForm item does not always update the UI. Here's a simplified example of what I'm doing:
    Code:
    DynamicForm form = new DynamicForm();
    TextItem textItem = new TextItem("name", "Name");
    form.setFields(textItem);
    
    // Initially set a value
    textItem.setValue("John Doe");
    
    // Later update the value
    textItem.setValue("Jane Doe");
    The UI sometimes does not update, even though textItem.getValue() returns "Jane Doe". The issue is intermittent and happens more frequently when the form is inside a VLayout or when values are set dynamically after a delay.
    I've tried calling form.redraw(), markForRedraw(), and textItem.fireEvent(new ChangedEvent(textItem.getJsObj())), but the issue persists.
    Has anyone else encountered this in SmartGWT 13.1? Any workarounds or fixes would be greatly appreciated!
    @Chill Guy Game
    Last edited by daniel199x; 1 Apr 2025, 01:39.

    #2
    This issue has never been reported and is completely bizarre. We would suggest testing with another browser or with another machine, because this is very very basic stuff, so the most likely problem is that you've installed a browser plugin that is interfering with the basic function of your browser.

    You haven't mentioned whether you're trying to integrate SmartGWT into a page or application that might have some other (poorly behaved) frameworks installed - that's a possibility as well.

    Comment

    Working...
    X