Multiple fileUpload components on one page do not work

Components, Ajax Framework, Utilities and More.
User avatar
optimus.prime
Prime
Posts: 17433
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 Sep 2011, 21:07

Not supported at the moment.

User avatar
andyba
Expert Member
Posts: 2475
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

06 Sep 2011, 11:37

A simple workaround for this is to have each fileupload in its own page and bind those into the main page using an iframe for each one.
It is a bit clunky but it worked for me.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

luisalves00
Posts: 71
Joined: 21 Feb 2011, 18:37

11 Jan 2012, 14:27

will this issue be fixed soon? using t:inputFileUpload because I need more than one fileupload file per form (using inside tabs...)

User avatar
optimus.prime
Prime
Posts: 17433
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Jan 2012, 15:20

You can use multiple simple uploaders, limitation applies to advanced uploader. t:inputFileUpload is same as p:fileUpload mode="simple".

Multi advanced file upload is not in immediate roadmap.

garethwebbley
Posts: 23
Joined: 06 Mar 2011, 22:35

11 Jan 2012, 15:37

Sorry to jump in here but I'm a little bit confused.

I understand that the original requirement appears to be to have multiple fileUpload components. Is this the real requirement or is it to be able to upload multiple files from one form?

Won't

Code: Select all

<p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}"  
            mode="advanced"  
            update="messages"   
            multiple="true"  
            sizeLimit="100000"   
            allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/>  
achieve that?

User avatar
optimus.prime
Prime
Posts: 17433
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Jan 2012, 16:30

Case is having multiple advanced fileupload components in same form, sure you can upload multiple files in one form if you have one advanced uploader.

garethwebbley
Posts: 23
Joined: 06 Mar 2011, 22:35

11 Jan 2012, 17:20

OK Sorry, I'll keep my nose out then :)

Just thought I'd ask the question just in case the original poster was unaware of the "multiple" functionality.

ravisankar.vvvsrk
Posts: 5
Joined: 26 Jun 2012, 10:48

12 Jul 2012, 07:48

can we use the two p:fileupload tags for mode =simple in a same page

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 11 guests