GWT 2.1 编辑器框架 [英] GWT 2.1 Editors framework

查看:20
本文介绍了GWT 2.1 编辑器框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有关如何使用 GWT 2.1 的一些文档或示例编辑器框架.谷歌的文档是呃,有点缺乏.

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.

从可用的有限文档中,我已经能够收集到编辑器将(理论上)允许您更轻松地将 GUI 元素绑定到数据模型.这将减轻将数据复制到 TextArea/ListBox/CheckBox,然后将用户的更改复制回底层模型(并最终复制到 DB)这一非常常见的任务.

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.

推荐答案

我在同一个地方已经有一段时间了,试图弄清楚 Editors 如何与 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!

这篇关于GWT 2.1 编辑器框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆