I am using the Editor framework combined with a proprietary rest-based back end. The objects returned from my back end service may contain validation errors (though not JSR 303 style errors). If I want to display these errors in my editor, do I just create my own implementation of ConstraintViolation and convert my own error format to a list of those?
I'm guessing the flow is:
1. user clicks save
2. call driver.flush()
3. if no errors, persist object to server
4. server returns object w/validation errors
5. call driver.setConstraintViolations(myViolations);
6. call driver.edit(myObject);
Is there anything else I need to do? Will this interfere with client-side validations?
thanks