I have an inputTextArea control on my XPage and need to add a Java Converter to run code during the Process Validations phase. I initially used a Validator, but the Validator doesn't run if the value is blank, so I need to use a Converter.
However, I need to reproduce the standard behaviour in the getAsString and getAsObject methods.
The underlying field value could be a multi-value field, in which case the value parameter passed into the Converter has already been changed to a comma-separated string. But it could also be a single text string that happens to include commas. So I can't just do a replace and I can't just output the value as it is. I need to handle the content as the normal converter would.
Any ideas?