I also tried to use validator, but it also didn't work. After searching on jira, then I found this bugs:
which only be fixed on 4.0.0.BETA1
Is there any other way to handle this?
yes, you can't do this using validation currently. check size in listener and output some message label manually with outputText for example.
I tried to do that.. But as in my first post the file will still be in the list uploadData, because when I try to remove it from the list, the list is not updated yet. I wonder if there's any proper way to remove it from the list?
What I'm currently doing is inserting some code in the statusMessage (string message when filesize is 0) getter, and loop the whole UploadItem in uploadData and remove it if its file is 0.