为简单的应用程序设置GWT验证框架的教程? [英] Tutorial on setting up GWT-Validation Framework for a simple app?

查看:254
本文介绍了为简单的应用程序设置GWT验证框架的教程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找在我们的应用程序中设置GWT验证框架(客户端),但我不清楚从文档中我需要哪些部分以及哪些部分在哪里?

我们正在使用GWT 2.1和MVP。我有在gwt.xml中的验证的继承条目,但实际上进入视图,活动等...我不知道任何教程可用。



任何帮助将不胜感激!



后果:
当我试图使用它,GWT 2.1与GWT验证框架不兼容。在做更多的阅读之后,我发现了这一点。我不知道是否仍是这种情况。
我假设您指的是验证框架在GWT中,而不是 gwt-validation库?如果是这样的话,下面是一个描述如何进行bean验证的页面: http://code.google.com/p/google-web-toolkit/wiki/BeanValidation 。如果您实际上指的是gwt验证库,下面是描述如何使用它的页面:
http://code.google.com/p/gwt-validation/wiki/ConceptOfOperations


I'm looking to setup the GWT-Validation Framework (client side for now) in our application, but I'm not clear from the docs what pieces I need and what goes where?

We are using GWT 2.1 and MVP. I have the inherits entry for Validation in the gwt.xml, but what goes actually goes into the View, Activity, etc... I'm not aware of any tutorials available.

Any help would be appreciated!

Aftermath: At the time when I was trying to use it, GWT 2.1 wasn't compatible with the GWT-Validation framework. After doing more reading I found this out. I don't know if that is still the case.

解决方案

I assume you are referring to the validation framework in GWT and not the gwt-validation library? If that's the case, here is a page that describes how you can do bean validation: http://code.google.com/p/google-web-toolkit/wiki/BeanValidation. If you are actually referring to the gwt-validation library, here is a page that describes how to use it: http://code.google.com/p/gwt-validation/wiki/ConceptOfOperations

这篇关于为简单的应用程序设置GWT验证框架的教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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