How can I customize error messages from SmartGWT? (Not asking about i18n)

StackOverflow https://stackoverflow.com/questions/21608267

  •  08-10-2022
  •  | 
  •  

문제

I am trying to get customized messages from SmartGWT (e.g. change "Must be a date" for another custom message). How can I get that String before it is shown to the user so I can edit it?

The question is for FormItem subclasses.

도움이 되었습니까?

해결책

You can try the following:

dynamicForm.setFieldErrors(fieldName, errorText, true);

Here is the link for documentation.

Or the following is also similar:

dynamicForm.setErrors(map, true);

Here is the link for documentation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top