DOM.setElementProperty(getElement(), "tabIndex", "1");
RootPanel root = RootPanel.get(rootPanelId);
- Element rootElement = root.getElement();
- if (rootElement.getChildCount() == 1) {
- // Remove any "v-app-loading" div
- rootElement.getChild(0).removeFromParent();
- }
- root.add(this);
+
+ // Remove the v-app-loading or any splash screen added inside the div by
+ // the user
+ root.getElement().setInnerHTML("");
+ // For backwards compatibility with static index pages only.
+ // No longer added by AbstractApplicationServlet/Portlet
root.removeStyleName("v-app-loading");
+ root.add(this);
+
BrowserInfo browser = BrowserInfo.get();
// set focus to iview element by default to listen possible keyboard
String themeClass = "v-theme-"
+ themeName.replaceAll("[^a-zA-Z0-9]", "");
- String classNames = "v-app v-app-loading " + themeClass + " "
- + appClass;
+ String classNames = "v-app " + themeClass + " " + appClass;
String style = getApplicationProperty(PORTLET_PARAMETER_STYLE);
String divStyle = "";
RenderResponse response, final BufferedWriter writer, String id,
String classNames, String divStyle) throws IOException {
writer.write("<div id=\"" + id + "\" class=\"" + classNames + "\" "
- + divStyle + "></div>\n");
+ + divStyle + ">");
+ writer.write("<div class=\"v-app-loading\"></div>");
+ writer.write("</div>\n");
writer.write("<noscript>" + getNoScriptMessage() + "</noscript>");
}