I’ve got a JSF page that allows users to upload images. I’d like to perform some validation on the uploaded file to ensure it’s the correct size, dimensions, content type, etc. I’ve created a JSF Validator, and have tried specifying it both in the <s:fileUpload validator="XXX" /> attribute, as well as using the <f:validator /> tag. However, no matter what I try my validator is never called. Is there any way to validate a file upload in Seam? Would using <rich:fileUpload /> allow me to do validation on the uploaded file?
I’ve got a JSF page that allows users to upload images. I’d like to
Share
After a lot of trial and error, I’ve just decided to do a manual validation in my submit method. I haven’t found a way to get a Validator object to work successfully.