This warning is from here [1], I would add the "required" validator
[2][3] to avoid using field-validator if the value is null
[1]
https://github.com/apache/struts/blob/main/core/src/main/java/org/apache/struts2/validator/validators/VisitorFieldValidator.java#L134
[2] https://struts.apache.org/co
I think, I found the solution by using the "visitor validator".
Is that the right way?
myPath.ChildClass
true
Required even though missing in documentation
https://struts.apache.org/core-developers/visitor-validator
And for the conversion
One more thing left with the "visitor validator":
WARN [org.apache.struts2.validator.validators.VisitorFieldValidator] (default
task-3) The visited object is null, VisitorValidator will not be able to handle
validation properly. Please make sure the visited object is not null for
VisitorValid
3 matches
Mail list logo