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. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/gT9CqlrFtNsJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
