Announcement

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

    SmartGWT and global ID clarification

    I have a DynamicForm with a global ID (form.setID('myForm')) which is a member of a VStack. However, if I call vStack.removeMember(form) the form disappears but the global ID is still available via JavaScript-Console and the form still seems to exist.

    Is this the correct behaviour? Does the form get cached? Can/Should I manually destroy the form to free the ID?

    Thanks
    Krigu

    #2
    Yes, that's correct behavior. removeMember() does not permanently destroy the widget - you can add it to another Layout, for example. To permanently destroy a widget, call destroy().

    Comment


      #3
      Thanks for the quick answer.

      If I have multiple nested components, does destroy() also destroy recursive the sub-members/components?

      Comment


        #4
        Please see the docs for BaseWidget.destroy().

        Comment


          #5
          Unfortunately, the widget with the assigend ID does not get destroyed. Are there any conditions that prevent a widget from getting destroyed?

          Thanks for your help

          Comment


            #6
            No, there aren't. If you're having trouble, try posting code we can run to see the problem.

            Comment

            Working...
            X