【问题标题】:GWT SplitLayoutPanel not displayingGWT SplitLayoutPanel 不显示
【发布时间】:2013-01-31 18:35:59
【问题描述】:

作为 GWT 的新手,我无法使用 GWT 2.5.0 和 Eclipse Juno 插件在 Google Chrome 版本 24.0.1312.57 m 中显示 SplitLayoutPanel。为了了解它是如何工作的,我逐字遵循http://www.giantflyingsaucer.com/blog/?p=2324 的示例,除了将 RootLayoutPanel 更改为 RootPanel 以及以下任何链接中建议的其他一些内容:

GWT widget not showing when I use a SplitLayoutPanel

UiBinder and SplitLayoutPanel not displaying

Can't get SplitLayoutPanel working - GWT + UIBinder are driving me crazy

Empty page when put TabLayoutPanel to SplitLayoutPanel

无论我尝试什么,SplitLayoutPanel 都不显示;我得到的只是一个空白页。对我所缺少的有什么想法吗?谢谢。

【问题讨论】:

  • 请贴一些代码。控制台有错误吗?

标签: java gwt


【解决方案1】:

你不能这样混搭。 https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#LayoutPanels

RootPanel 系统是较旧的方法,不适合 LayoutPanel 的概念。

SplitLayoutPanel 不应与 RootPanel 一起使用。 期间

【讨论】:

  • 布局面板可以与 RootPanel 一起使用,前提是您可以处理所有情况。但不建议这样做。
  • can/cannot 和 should/should not 之间存在细微差别:D
  • 我找到了问题的根源。除了使用 RootPanel 而不是 RootLayoutPanel 之外,ui.xml 文件和创建它的源代码有几个错误输入的元素,即使项目已编译!有时复制/粘贴也会导致问题。 :) 感谢您为我指明正确的方向。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-01-10
  • 1970-01-01
  • 2011-01-30
  • 2021-05-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多