Hi
When a validation error occurs from my (GWT) server, I do the following:
final Map<String, String> fieldErrors = new HashMap<String, String>();
fieldErrors.put("name", "This should be my error message");
final DSResponse response = new DSResponse();
response.setAttribute("clientContext", request.getAttributeAsObject("clientContext"));
response.setStatus(DSResponse.STATUS_VALIDATION_ERROR);
response.setErrors(fieldErrors);
This works with a DynamicForm but when using a ListGrid the error message shown against the column (named 'name') is always "undefined" !!! Why? If I explicitely use ListGrid.setFieldError(row, "name", "This should be my error message") the ListGrid displays the right message!
Can you help. Many thanks
When a validation error occurs from my (GWT) server, I do the following:
final Map<String, String> fieldErrors = new HashMap<String, String>();
fieldErrors.put("name", "This should be my error message");
final DSResponse response = new DSResponse();
response.setAttribute("clientContext", request.getAttributeAsObject("clientContext"));
response.setStatus(DSResponse.STATUS_VALIDATION_ERROR);
response.setErrors(fieldErrors);
This works with a DynamicForm but when using a ListGrid the error message shown against the column (named 'name') is always "undefined" !!! Why? If I explicitely use ListGrid.setFieldError(row, "name", "This should be my error message") the ListGrid displays the right message!
Can you help. Many thanks
Comment