Hello,
Is it possible to use Java class to validate "Text Field CCE" widget using "Validation" tab?
We have a field that is using "Text Field CCE" widget. Under widget's Validation tab's "Rule:" it allows for a Java Class option, however the help text does not specifically recommend to implement any interface and says "Enter the fully qualified java package and class name used to calculate the default value...", which is kind of confusing for validation.
I found an interface I thought I could use called com.vignette.wcm.widgets.base.validation.IValidatable. I created and deployed a test implementation of it. After configuring it I got an error message saying something along the lines "missing validate() method". The interface's only method is "isValid()".
I do need to have java logic as I need to traverse previous versions of a content instance.
At this point I wonder if I can go this route at all?
Thank you,
Vlad