Multiple upload and update attribute

UI Components for JSF
Post Reply
mujer_esponja
Posts: 4
Joined: 17 Aug 2011, 16:24

19 Sep 2011, 17:19

Hello,
I am using <p:fileUpload component. I'm trying to upload several files and know when the upload is finished, by the attribute update, in order to render some parts of the page.
This is my code:

Code: Select all

<p:fileUpload 
							update="uploadView"
							fileUploadListener="#{actionsContainer.uploadListener}"
							multiple="true" 
							label="Upload"
							allowTypes="*.jpg;*.png;*.gif;*.pdf;*.webm;*.flv;*.txt;" 
							global="true"
						/>
If I remove
update="uploadView"
, there is a loop in my backend action, and all the functionality for multiple upload is working fine, the problem is that I don't know when it is finished.
In the other part, if I only turn
multiple="false"
, there is no loop, but the event is correctly found.

I saw several pages and nobody talks about some conflict, am I missing something? Thanks in advance
PrimeFaces 2.2.1, Mojarra 2.1.1-b04, MacOs

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests