This content has been marked as final.
Show 3 replies
-
1. Re: fileUpload and ajaxSingle
mars1412 Mar 28, 2008 4:35 AM (in response to ratoo)I'm not sure this helps, but it sounds like the problem that is described in the rich-faces sample: 'local-value-demo'
-
2. Re: fileUpload and ajaxSingle
ratoo Mar 28, 2008 10:38 AM (in response to ratoo)Exactly! haven't seen it.
The only problem is that "region" doesn't work:<a4j:region> <rich:fileUpload immediate="true" fileUploadListener="#{AnySequenceForm.upload}" uploadData="#{AnySequenceForm.files}" maxFilesQuantity="1" immediateUpload="true" autoclear="true" listHeight="30px" fileEntryControlClass="UploaderEntryControlClass" uploadListClass="UploaderListClass"> <a4j:support event="onuploadcomplete" ajaxSingle="true" reRender="the_sequence_panel"/> </rich:fileUpload> </a4j:region>
As far as I understand "region" limits the information to be send to the server by ajax request so my "BAD" textarea shouldn't be updated... but it is.
Should I submit a bug? -
3. Re: fileUpload and ajaxSingle
ilya_shaikovsky Apr 1, 2008 6:28 AM (in response to ratoo)fileUpload submits all the form. To avoid this problem you could:
1) Split forms for upload and output
2) Split value bindings for uploaded file and text area.
a)Bind textarea to some bean property and upload file to the other one.
b) in ajaxSingle request from your support - set the textArea property value to the value of the second propety