-
1. Re: Restrict rich:fileupload for 0 byte file
bugx Nov 25, 2009 10:49 PM (in response to bugx)I also tried to use validator, but it also didn't work. After searching on jira, then I found this bugs:
https://jira.jboss.org/jira/browse/RF-5177
which only be fixed on 4.0.0.BETA1
Is there any other way to handle this? -
2. Re: Restrict rich:fileupload for 0 byte file
ilya_shaikovsky Nov 27, 2009 8:53 AM (in response to bugx)yes, you can't do this using validation currently. check size in listener and output some message label manually with outputText for example.
-
3. Re: Restrict rich:fileupload for 0 byte file
bugx Nov 27, 2009 3:08 PM (in response to bugx)Hi ilya_shaikovsky,
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.
Thx,
Andre