playEditor 应用程序 Gwt 验证器
我正在查看 playEditor 应用程序来学习,该应用程序已加载,但验证器在第一次后不起作用。您有更新版本吗?
I was looking at the playEditor app to learn and the app loads up but the validator does not work after the first time.Do you have an updated version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您指的是这篇文章中我的小(故意未经修饰的)示例:GWT 2.1 编辑器框架 - 不,我没有更新版本。
问题是,一旦验证通过,它就会停止工作。我相信,编辑器框架的使用方式(至少在 GWT 2.1 中)是,一旦验证正确,就关闭编辑器对话框/面板/...。当您想在此之后再次使用它时,您必须创建一个新的对话框(验证再次起作用)。
这实际上是我目前不使用该框架的主要原因之一。我通常更喜欢可重复使用的表单而不是关闭对话框,所以它对我来说似乎并不理想。
请注意,我还没有对 GWT 2.2 进行新的尝试 - 也许我甚至没有为 GWT 2.1 做出足够的努力 - 所以如果有人找到解决方案,我会很高兴!
If you mean my little (intentionally unpolished) example from this post: GWT 2.1 Editors framework - no, I don't have an updated version.
The problem was, that once the validation passes, it stops working. I believe, the way the Editor framework is/was meant to be used (at least with GWT 2.1) is that you close the editor Dialog/Panel/..., as soon as the validation is correct. When you want to use it again after that, you'd have to create a new Dialog (where validation works once again).
This is actually one of the main reasons, why I'm currently not using the framework. I often prefer re-usable forms over closing dialogs, so it didn't seem ideal for me.
Note that I haven't made a new attempt for GWT 2.2 - and maybe I didn't try hard enough even for GWT 2.1 - so I would be glad, if someone finds a solution!