Issue 73 in rapid-framework: 更新的时候不能验证

3 views
Skip to first unread message

rapid-f...@googlecode.com

unread,
May 15, 2011, 11:18:36 PM5/15/11
to rapid-f...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 73 by longlong...@gmail.com: 更新的时候不能验证
http://code.google.com/p/rapid-framework/issues/detail?id=73


rapid版本:3.9.3

使用的相关插件组合是:springmvc+mybatis

按如下步骤重现错误:
1.更新的时候bind方法没有调用到验证

期待的结果是:更新的时候,bind方法执行完成后应该和新增的时候一样执行后台校
验,但是新增现在是可以校验的,更新的时候不能校验,经过跟踪,发现bind方法调用
了基类的validators进行验证,但是validators为空,没有注入进去,现在只能在
initBuilder的时候增加binder.setValidator(),注入validator,然后重写bind方
法,在binder.bind()后增加binder.validate(),不知道大家有没有更优雅点的做法。

Reply all
Reply to author
Forward
0 new messages