PF 3.0 - multiple="false" not working in new <p:fileUpload>

UI Components for JSF
Post Reply
User avatar
jim@jimtough.com
Posts: 142
Joined: 03 Jun 2011, 18:06
Location: Canada

02 Aug 2011, 14:31

Just confirmed in 3.0 Labs Showcase.

If you try the "Single" example in the current showcase you can keep adding more files to the list. Setting the attribute multiple="false" seems to have no effect in IE 7 and seems to mess up the component in Firefox 4.
PF 3.0,
Mojarra 2.1.4,
Tomcat 7.0.14,
Eclipse Indigo,
IE 7, Chrome

Image
http://stackoverflow.com/users/346112/jim-tough

Would rather be a Decepticon...

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Aug 2011, 15:01

I don't have FF4 but worked fine on FF5?

IE doesn't support dragdrop and multi selection we can't do anything about that.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Aug 2011, 15:03

Single means you can select one file from file dialog.

To limit max file size, use fileLimit option.

User avatar
jim@jimtough.com
Posts: 142
Joined: 03 Jun 2011, 18:06
Location: Canada

02 Aug 2011, 15:10

On the current 3.0 Labs Showcase I start with "FileUpload", then click on "Single Upload".

Under IE 7 you can click the "+Choose" button as many times as you wish and keep adding more files to the list.

I don't have FF 4 on my workstation that has internet access, but on my internal workstation (that hosts my development environment) I am seeing similar behavior with FF 4 if I do not define the 'multiple' attribute at all.
PF 3.0,
Mojarra 2.1.4,
Tomcat 7.0.14,
Eclipse Indigo,
IE 7, Chrome

Image
http://stackoverflow.com/users/346112/jim-tough

Would rather be a Decepticon...

User avatar
jim@jimtough.com
Posts: 142
Joined: 03 Jun 2011, 18:06
Location: Canada

02 Aug 2011, 15:34

I just installed FF 4 on a workstation with internet access here. FF 4 is completely non-functional in the 3.0 Labs Showcase using the "Single Upload" example. If I click on the "+Choose" button nothing happens.
PF 3.0,
Mojarra 2.1.4,
Tomcat 7.0.14,
Eclipse Indigo,
IE 7, Chrome

Image
http://stackoverflow.com/users/346112/jim-tough

Would rather be a Decepticon...

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Aug 2011, 17:47

Tested with FF4 worked fine and I don't think you've understood what single upload means, see me previous comment. It doesn't mean you can queue only one file, it means you can only select one file at a time from file browser.

User avatar
jim@jimtough.com
Posts: 142
Joined: 03 Jun 2011, 18:06
Location: Canada

02 Aug 2011, 18:04

I guess I didn't understand what "multiple" was supposed to do.

I still can't get Firefox 4.0.1 to work at all. I'm running it on Windows XP. When I click the "+Choose" button nothing happens. That machine also has IE 8 installed and it works fine. Another machine here with IE 7 and Windows XP also works fine.
PF 3.0,
Mojarra 2.1.4,
Tomcat 7.0.14,
Eclipse Indigo,
IE 7, Chrome

Image
http://stackoverflow.com/users/346112/jim-tough

Would rather be a Decepticon...

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: WileyTup and 47 guests