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

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

问题描述

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

在有限的文档中,我已经能够收集到编辑器(理论上)允许您更轻松地将GUI元素绑定到数据模型。这将缓解将数据复制到TextArea / ListBox / CheckBox,然后将用户的更改复制回基础模型(最终是DB)的常见任务。



如果确实能够实现这一目标,将会非常受欢迎。就目前而言,我还在摸索着如何实施它。任何指向文档或示例的指针都会受到高度赞赏。

解决方案

我在相同的地方呆了一段时间,试图弄清楚编辑如何与RequestFactory的东西联系起来。 GWT 2.1.1版本中的DynaTableRF示例最终开始让事情走到一起 - 这很复杂,但我认为你需要一个复杂的应用程序才能看到好处。每一步中的代码都非常简单 - 但有很多步骤!


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.

解决方案

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天全站免登陆