Announcement

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

    Cannot change configuration property 'ID'

    I destroy the component grid but i created new component grid and show popup

    Windows Intenert Explorer
    Error: "Cannot change configuration property 'ID' to grid after the component has been created"

    you help me?

    thanks!

    #2
    Please post a standalone test demonstrating the issue. The more information you provide the easier it will be for us to help.

    Comment


      #3
      i got the same insue...


      i craete a window... and client close it... and creat again...

      i got this msg "Cannot change configuration property 'ID'", i try use close(), destroy()... i check code with Firebug, and the window still there but hidden...

      so, destroy(), dont destroy realy...

      i need ID cuz im using Selenium IDE... to automate tests...

      by the way, ty for all your work on SmartGWT guys... ur Great...

      cya

      Comment


        #4
        14:28:07.038 [ERROR] [project] Uncaught exception escaped
        java.lang.IllegalStateException: Cannot change configuration property 'ID' to frmListAccessGroup after the component has been created.
        at com.smartgwt.client.widgets.BaseWidget.error(BaseWidget.java:544)
        at com.smartgwt.client.widgets.BaseWidget.error(BaseWidget.java:532)
        at com.smartgwt.client.widgets.BaseWidget.setAttribute(BaseWidget.java:554)
        at com.smartgwt.client.widgets.BaseWidget.setID(BaseWidget.java:306)
        Last edited by jhouw; 18 Aug 2010, 09:33.

        Comment


          #5
          Can you post the minimal code you are trying to execute.

          Comment


            #6
            Code:
             public FrameGrid(String id) {
            		super(id);
            		
            		grid = getGrid();
            		grid.setID(id+"-frameGrid");
            	}
            first time ok...

            second execution cause that exeption

            Comment


              #7
              I ran into the same issue.
              In my case it was because I was trying to set the ID of a data source instance to the same ID of another data source instance.

              Comment


                #8
                You cannot set the ID after onDraw(). And prior to that you cannot set the ID to an ID already in the DOM (even if it is not rendered). destroy() will immediately remove the element but markForDestroy() may perform the destroy at a later time.

                At least that's my experience so far...

                Comment

                Working...
                X