Hi Isomorphic,
I tried to implement a default value strategy using ValidationContext.setResultingValue().
This does not work, as my validator is not run for empty values. An attribute runForEmptyValue in .ds.xml-validator in order to enable this would be great.
Just to be sure:
There is no built-in way to define default values in .ds.xml, correct? Meaning something that would run before required="true"- and other validation and therefore pass these.
If so, this would be a nice addition as well, something like VelocityExpression defaultValue on ds.xml-DataSourceField.
What do you think of these two?
Best regards
Blama
I tried to implement a default value strategy using ValidationContext.setResultingValue().
This does not work, as my validator is not run for empty values. An attribute runForEmptyValue in .ds.xml-validator in order to enable this would be great.
Just to be sure:
There is no built-in way to define default values in .ds.xml, correct? Meaning something that would run before required="true"- and other validation and therefore pass these.
If so, this would be a nice addition as well, something like VelocityExpression defaultValue on ds.xml-DataSourceField.
What do you think of these two?
Best regards
Blama
Comment