]
Pete Muir closed JBSEAM-1981.
-----------------------------
Resolution: Rejected
Code is unusable as not in diff format and makes huge ws changes.
enable validation on file upload component
------------------------------------------
Key: JBSEAM-1981
URL:
https://jira.jboss.org/jira/browse/JBSEAM-1981
Project: Seam
Issue Type: Patch
Components: JSF Integration
Reporter: Bruno Bieth
Assignee: Shane Bryzak
Attachments: UIFileUpload.java
Currently file upload can't be validated.
The attached patch allow to use the hibernate validation framework with byte[]
attribute.
You may have, for instance, to check if an uploaded file is an Image.
About the patch :
First the submittedValue is not set so the validation phase is skipped, second file
upload doesn't use the standard "value" attribute (needed by the
ModelValidator) but "data".
To work you have to use a value attribute to your fileupload component. At the moment
this work only with Facelets. For backward compatibility the data attribute is kept (but
validation won't work).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: