Jboss-errai アプリケーションで DockLayoutPanel を使用しようとしています。私のエントリポイントクラス:
@EntryPoint
public class Application {
private Caller<UserService> userService;
private Label registerConfirmMessage;
@AfterInitialization
public void createUI() {
DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
p.addNorth(new HTML("header"), 2);
p.addSouth(new HTML("footer"), 2);
p.addWest(new HTML("navigation"), 10);
p.add(new HTML("content"));
RootLayoutPanel.get().add(p);
}
私のApplication.gwt.xml:
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.4//EN"
"http://google-web-toolkit.googlecode.com/svn/releases/2.4/distro-source/core/src/gwt-module.dtd">
<!-- GWT module definition: the rename-to attribute is used to have a shorter
module name that doesn't reflect the actual package structure. -->
<module>
<inherits name="org.jboss.errai.common.ErraiCommon" />
<inherits name="org.jboss.errai.bus.ErraiBus" />
<inherits name="org.jboss.errai.ioc.Container" />
<inherits name="org.jboss.errai.enterprise.CDI" />
<inherits name="org.hibernate.validator.HibernateValidator" />
<source path="client" />
<source path="shared" />
</module>
DOCTYPE を変更すると、異なる結果が検出されました。そう:
IE6 では、どちらの doctype でも動作します
<!DOCTYPE HTML>
Mozilla Firefox 14、Chrome の空白ページ
<!DOCTYPE>
FF14では空白のページですが、Chromeでは動作します。
他のすべての doctype では、空白のページになります。
解決策を教えてください!