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!
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!
Please post a standalone test demonstrating the issue. The more information you provide the easier it will be for us to help.
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
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)
Can you post the minimal code you are trying to execute.
public FrameGrid(String id) {
super(id);
grid = getGrid();
grid.setID(id+"-frameGrid");
}
first time ok…
second execution cause that exeption
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.
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…