gwt-validation

GWT validation framework internationalization for messages in annotations

僤鯓⒐⒋嵵緔 提交于 2020-01-15 12:12:40
问题 After having read this page I found a way of internationalizing validation messages. It is done by placing translations of each error type into ValidationMessages.properties files. javax.validation.constraints.Size.message=The property must be between {min} and {max} javax.validation.constraints.NotNull.message=The property must not be null It is error type-specific and it's not what I need in my app. I need a unique message for each of my fields in validated beans. With no

How to install gwt-validation with gwt-2.4.0

谁说胖子不能爱 提交于 2019-12-08 07:44:48
问题 I would like to use Gwt-Validation with Gwt 2.4.0. I have in my gwt.xml file : <inherits name="javax.validation.Validation" /> <inherits name="com.google.gwt.validation.Validation" /> <inherits name='com.em.validation.Validation' /> Like in the documentation, I have the following code : import javax.validation.Validator; import javax.validation.ValidatorFactory; ... ValidatorFactory factory = Validation.byDefaultProvider().configure().buildValidatorFactory(); Validator validator = factory