Multiple fileUpload components on one page do not work
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Not supported at the moment.
- andyba
- Expert Member
- Posts: 2473
- Joined: 31 Mar 2011, 16:27
- Location: Steinfeld, near Bremen/Osnabrück, DE
- Contact:
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.
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
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
-
- Posts: 71
- Joined: 21 Feb 2011, 18:37
will this issue be fixed soon? using t:inputFileUpload because I need more than one fileupload file per form (using inside tabs...)
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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.
Multi advanced file upload is not in immediate roadmap.
-
- Posts: 23
- Joined: 06 Mar 2011, 22:35
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
achieve that?
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)$/"/>
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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.
-
- Posts: 23
- Joined: 06 Mar 2011, 22:35
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.
Just thought I'd ask the question just in case the original poster was unaware of the "multiple" functionality.
-
- Posts: 5
- Joined: 26 Jun 2012, 10:48
can we use the two p:fileupload tags for mode =simple in a same page
-
- Information
-
Who is online
Users browsing this forum: No registered users and 52 guests