- Configure the formFile component to have a mandatory boolean property. Like formEdit.
- Add the formFile component to any formulary with the new property set to true
- Trying to submit the form, either with a file attached or not, will result on an error taking place.
The form can't be submitted only if the file is not attached.
The form can't be submitted wether the file is attached or not.
The check seems to take place here:
The validation doesn't take into account that StringUtils.isEmpty will return null if the field is an attachment, resulting on it always returning an error.