Wednesday, June 26, 2013

RequestFactory validate entity

Hi!

I've a question on bean validation using RequestFactory. Here's my scenario.

There's an application based on Spring Framework with a service layer. A WebApplicationContext is initialized and the services can be used by firing RequestContext on client side. Let's suppose I wanna save an entity. The context's save method get fired, a service method is invoked. The entity on the server side is valid. But in the service method another entity must be edited. That entity manipulation could raise ConstraintViolationException. When this happens, on the client side in the Receiver the onFailure method get called and I can't access that ConstraintViolation.
Is there a way/workaround to handle in the Receiver another entity's ConstraintViolation?

Thanks in advance!

Regards,
Miklós


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment