GWT 2.1 编辑器框架
我正在寻找一些有关如何使用GWT 2.1 编辑器框架<的文档或示例/a>.谷歌的文档呃,有点缺乏。
从有限的可用文档中,我了解到编辑器(理论上)将允许您更轻松地将 GUI 元素绑定到数据模型。这将减轻将数据复制到 TextArea/ListBox/CheckBox,然后将用户的更改复制回底层模型(最终是数据库)的非常常见的任务。
如果它确实实现了这一点,那将是非常受欢迎的。目前,我对如何实现它感到摸不着头脑。任何指向文档或示例的指针将不胜感激。
I'm looking for some documentation or examples on how to use the GWT 2.1 Editor framework. Google's documentation is uh, somewhat lacking.
From the limited documentation available, I've been able to glean that editors will (in theory) allow you to more easily bind GUI elements to data models. This will alleviate the very common task of copying data into a TextArea/ListBox/CheckBox, and then replicating the user's changes back to the underlying model (and ultimately the DB).
If it does indeed deliver on this, it will be very welcome. For now, I'm left scratching my head as to how to implement any of it. Any pointers to documentation or examples would be highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不久前,当我处于同样的情况时(不仅谷歌文档中的片段不起作用,而且他们还遗漏了最基本的粘合代码以使它们起作用),我尝试编写最我自己的基本编辑器示例项目。我从 DynaTableRf 示例中学习了编辑器基础知识(在我看来,该示例太复杂,无法开始使用编辑器),并将一些内容放在一起。
让我警告你:它很简单,但它是原始的和未经修饰的,它只是一个概念证明。这只是我的 Eclipse 项目的 zip: http://www.mediafire.com/ file/nwsohz7ov3cx173/playGwtEditors-02.zip (注意:这是 GWT 2.1 的旧版本)
更新
我刚刚更新了项目以使用 GWT 2.3。我在项目中提到的旧 GWT 2.1 错误现在已经消失了。这是新版本: http://www.mediafire.com/file/u1yffwuxi441dip/ playGwtEditors-03.zip
A little while ago, when I was in the same situation (not only did the snippets from the Google documentation not work, but they also left out the most basic glue code to make them work), I attempted to write the most basic Editors example project for myself. I learned the editor basics from the DynaTableRf example (which is way too complex to get started with Editors IMO), and put something together.
Let me warn you: It's simple, but it's raw and unpolished, it's just a proof of concept. It's just a zip of my Eclipse project: http://www.mediafire.com/file/nwsohz7ov3cx173/playGwtEditors-02.zip (note: This is the old version for GWT 2.1)
Update
I just updated the project to use GWT 2.3. The old GWT 2.1 bug which I had mentioned in my project is gone now. Here's the new version: http://www.mediafire.com/file/u1yffwuxi441dip/playGwtEditors-03.zip
我在同一个地方已经有一段时间了,试图弄清楚编辑器如何与 RequestFactory 的东西联系起来。 GWT 2.1.1 版本中的 DynaTableRF 示例最终开始将所有东西整合在一起 - 它很复杂,但我认为您需要一个复杂的应用程序才能开始看到好处。每个步骤中的代码都非常简单 - 但步骤很多!
I've been in the same place for a while, trying to figure out how Editors hook up with the RequestFactory stuff. The DynaTableRF sample in the GWT 2.1.1 release is what finally started making things come together - it's complex, but I think you need a complex app to start seeing the benefits. The code in each step is wonderfully simple - but there are a lot of steps!
这是使用编辑器框架和请求工厂的另一个示例希望它也有帮助。
https://github.com/mgenov/injecting-request-factory
Here is another example using Editor Framework with Request Factory hope it helps too.
https://github.com/mgenov/injecting-request-factory