-
1. Re: Rich:fileupload - how to use the onClean() event?
user1234 Dec 29, 2009 2:43 AM (in response to bitec)As per my understanding you want to do a server side action in onClean() event where you want to remove the uploaded file from the list on server, then a create a a4j:commandButton with a action method binding and onClean() event you click that a4j:CommandButton by javascript if you want to go server on onClear() event.
The fileUploadListener is for when you upload the files and from here you will get the currenly uploaded files list.
Unless you will upload, there will not be any loadload file list and onClear() is just a client side method which is getting fired when browsed files is getting clear and in this stage the file is not upload yet in the server and not added in your uploaded file list.
rich:fileUpload is for uploading the files to server, not to remove file from server.
-
2. Re: Rich:fileupload - how to use the onClean() event?
ilya_shaikovsky Jan 5, 2010 9:47 AM (in response to user1234)Deb Dutta, it's even better to suggest to use just a4j:support on onclean in order not to use invisible buttons and javascript -
3. Re: Rich:fileupload - how to use the onClean() event?
user1234 Jan 7, 2010 12:33 AM (in response to ilya_shaikovsky)Yes Ilya..you are absolutly right ..