Hi, i'm looking into perhaps unifying smartGWT with calls we have for other interfaces. We use Spring everywhere, and Web controllers. As part of that, we use a lot of validation annotation (@Valid, max etc), but if the calls come in from the smartgwt IdaCall servlet, the @Valid annotation in the Spring bean method parameters are ignored. (i use lookupstyle=spring to have IdaCall use my Spring MVC beans).
I looked at your spring integration docs, but it only talks about how to integrate Spring controllers in a rudimentary fashion, and integrate Spring transactions, but there's nothing on spring validation.
Is there any way to make the request chain use Spring mvc annotated validation with SmartGWT?
Edit, to elaborate a bit:
In your docs, you say (in "using spring controllers..."):
"This lets you use Spring's DispatchServlet, Handler chain and Controller architecture"
But as far as i can see, methods annotated with for example
, the @valid is ignored and the spring validation that usually occurs, does not if the call comes in from IDACall.
I looked at your spring integration docs, but it only talks about how to integrate Spring controllers in a rudimentary fashion, and integrate Spring transactions, but there's nothing on spring validation.
Is there any way to make the request chain use Spring mvc annotated validation with SmartGWT?
Edit, to elaborate a bit:
In your docs, you say (in "using spring controllers..."):
"This lets you use Spring's DispatchServlet, Handler chain and Controller architecture"
But as far as i can see, methods annotated with for example
Code:
public @ResponseBody List<ScheduleItem> add(@RequestBody @Valid ScheduleItemTO item, HttpServletResponse resp)
Comment