java - Why Struts 2 annotations don't have LongRangeFieldValidator -
I was working on verification using annotation in Stratus 2 and I was quite surprised to see that in the annotation . It shows an error because it does not actually exist and can not be converted to I used I could use it a lot because it was unable to do a type of casting. I thought it was supposed to work because Docs says that For numerical type. This is a valid (and it should be) non-integer value so I had to leave it. / P> Finally I had to convert my My question is why is there no It seems that they forgot to add this annotation to the main package. There can be only one mistake, but there is an alternative solution. Use a value Use
com.opensymphony.xwork2.validator.validators.LongRangeFieldValidator in a
comment type. It was quite clear so I switched to the next.
long area to
string and use it.
Longerangerfield Validator in the package and what are the best practices for obtaining it?
@CustomValidator (type = "tall", field name = "myfield")
long .
Comments
Post a Comment