当我尝试将标签附加到面板时,我在 Internet Explorer(开发模式和非开发模式)上的 GXT 代码出现错误。错误是“未知的运行时错误号:-2146827687”,但 GWT 模块中的此错误总是抛出,在其他带有附加到面板的标签的 gwt 模块中,没有错误。
panel的布局是我自己开发的一个GridFormLayout。当调用 renderComponentInCell (在 doLayout 上调用该方法)并且未渲染组件(其他条件)时会引发错误。
private void renderComponentInCell(Component component, Element cell) {
if (component.isRendered()) {
cell.appendChild(component.getElement());
} else {
component.render(cell);
}
}
我能做些什么?