protected void onAttach() {
if (!rendered) {
String widgetIndex = dummy.getPropertyString("__uiObjectID");
Element parent = DOM.getParent(dummy);
int index = DOM.getChildIndex(parent, dummy);
parent.removeChild(dummy);
component.render(parent, index);
if (widgetIndex != null) {
getElement().setPropertyInt("__uiObjectID", Integer.parseInt(widgetIndex));
}
}