Hi, I am using gwt's bean validation framework for error validation. I
am trying to understand the mechanism to create custom
ConstraintViolationImpl in my server's service code and send it over
to client. Following is my code in persist() method:


                Set<ConstraintViolation<?>> set = new 
HashSet<ConstraintViolation<?
>>();
                PathImpl path = new PathImpl();
                ConstraintDescriptor<?> descriptor = null;
                ConstraintViolation<Person> violation = new
ConstraintViolationImpl<Person>("custom bean error", "custom bean
error", Person.class, person, person, person.getAddress(),
path.append("name"), null, ElementType.FIELD);

                set.add(violation);
                throw new ConstraintViolationException(set);


on persist, I expect onConstraintViolation() of Receiver to be
triggered. However I get the callback in onSuccess. What am I doing
wrong here?

Any kind of help and/or reference greatly appreciated.

Thanks,
Rakesh Wagh

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to