@Override public void paintContent(PaintTarget target) throws PaintException { page.paintContent(target); if (scrollIntoView != null) { target.addAttribute("scrollTo", scrollIntoView); scrollIntoView = null; } if (pendingFocus != null) { // ensure focused component is still attached to this main window if (equals(pendingFocus.getUI()) || (pendingFocus.getUI() != null && equals(pendingFocus.getUI().getParent()))) { target.addAttribute("focused", pendingFocus); } pendingFocus = null; } if (actionManager != null) { actionManager.paintActions(null, target); } if (isResizeLazy()) { target.addAttribute(UIConstants.RESIZE_LAZY, true); } }