In an example project I set up client side validation and server side validation. Both validations work as I receive ConstraintViolation instances if for example a person's name is null.
When I call EditorDriver.setConstraintViolations(..) using the violations from client side validation the error will be shown by the editor. But when I use the violations received from the server they won't be shown because the editor receives an empty list in HasEditorErrors.showErrors().
Does anyone has an idea how this could happen?
For client side validation I use the proxy (RequestFactory) returned by SimpleBeanEditorDriver.flush(). Then I create a new RequestContext, clone that edited proxy and send the clone to the server for validation and saving. So one difference I can see is that the ConstraintViolation from the server does not reference the proxy that is currently edited by the EditorDriver. But could this be a problem?
-- J.