-
1. Re: How to reRender + execute an action after onuploadcomple
ilya_shaikovsky Nov 26, 2008 5:35 AM (in response to jobb)place rich:messages somewhere on the page. As you could see the same scenario (with just support instead of jsFunction) shows just as you need at our live demo
-
2. Re: How to reRender + execute an action after onuploadcomple
jobb Nov 26, 2008 6:34 AM (in response to jobb)rich:messages is placed in the same page, rendering like this :
<dl id="j_id_jsp_495879280_5" class="rich-messages" style="display: none; null"><dt><span class="rich-messages-label"></span></dt></dl>
Checked live demo with a4j:support (Ajax support) , but can't find any similarity. -
3. Re: How to reRender + execute an action after onuploadcomple
jobb Nov 26, 2008 8:38 AM (in response to jobb)It's me again.
I've tested more around rich:fileUpload and a4j:jsFunction
1. if you include id to a4j:jsFunction like this
<a4j:jsFunction id="reRenderUpload" name="js_UploadEnd" .../>
a4j:jsFunction begin to execute action and reRender id's.
Without id, no action or reRendering.
2. In example under fileNameUploaded on IE returns full path file (C:\Documents and Settings\bla\Desktop\Film chanels.txt)
but on Mozilla returns only file name (Film chanels.txt) when uploading a file C:\Documents and Settings\bla\Desktop\Film chanels.txtpublic void fileUploaded(org.richfaces.event.UploadEvent event) { org.richfaces.model.UploadItem item=event.getUploadItem(); String fileNameUploaded = item.getFileName(); }
-
4. Re: How to reRender + execute an action after onuploadcomple
andrei_exadel Dec 1, 2008 6:43 AM (in response to jobb)Hi,
1. I've tested this part of code on 3.2.2.GA. Action for jsFunction fires always, also without ID specified. Which RF version do you use?
2. We know about this difference in behavior. It depends on browser security.
IE allows getting full file name through JS and sends it to server on upload. But FF sends only short file name. Please keep it in mind and make correction on server side. -
5. Re: How to reRender + execute an action after onuploadcomple
jobb Dec 1, 2008 7:10 AM (in response to jobb)I am using RF version 3.2.2.SR1
-
6. Re: How to reRender + execute an action after onuploadcomple
ilya_shaikovsky Dec 1, 2008 7:49 AM (in response to jobb)1) please try to use 3.3.0 Beta1. If not helps you could rise an issue with sample war attached, or just send to me this war directly.
2) I've talking about fileUpload page on livedemo. Not support one. -
7. Re: How to reRender + execute an action after onuploadcomple
jobb Dec 1, 2008 9:30 AM (in response to jobb)Hi Ilya
1) 3.3.0 Beta1 gives the same result as 3.2.2.SR1
2) I can send to you min war file with some description. What is your mail address ? -
8. Re: How to reRender + execute an action after onuploadcomple
ilya_shaikovsky Dec 1, 2008 9:36 AM (in response to jobb)ishaikovsky at exadel dot com . and please provide java source also.