multiple FileUpload elements on a single page

UI Components for JSF
Post Reply
karltoffel
Posts: 7
Joined: 01 Jul 2011, 13:37

06 Oct 2011, 10:19

Hi,

I can't use multiple fileUpload elements on a single page, only the last one seems to receive events from the browser and performs ajax calls. The first elements silently ignore the user actions (the file selection dialog pops up, but nothing else happens, no errors in the javascript console).

Code: Select all

<p:fileUpload
        allowTypes="/(\.|\/)(gif|jpe?g|png)$/"
        auto="true"
        update=":editorForm"
        multiple="false"
        sizeLimit="2000000"
        label="#{cc.attrs.label}"
        mode="advanced"
        fileUploadListener="#{cc.attrs.fileUploadListener}"
        />
<artifactId>primefaces</artifactId>
<version>3.0.RC1-SNAPSHOT</version>

<artifactId>myfaces-impl</artifactId>
<version>2.1.1</version>

Jetty 8, Firefox 6

Any ideas?

bpap
Posts: 34
Joined: 30 Sep 2011, 16:15

06 Oct 2011, 10:49

Perhaps this is a bug, but try to put each fileUpload element in separate form.
Apache Tomcat 7.0.21 / JSF 2.1.2 / PM 3.0.M4-SNAPSHOT

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

06 Oct 2011, 11:49

Not supported to be in same for for advanced uploader. Simple uploader supports this, try searching the forums first.

rems
Posts: 1
Joined: 10 Oct 2011, 16:35

10 Oct 2011, 17:49

Will the roadmap include an improvement to allow several "advanced uploader" items on a same h:form ?
I wasn't able to find any issue or documentation related to this limitation, nor a feature in the roadmap.

Could you past a link to this feature request, if such a request exists ?
Or should I fill in a new feature request ?
If there are some technical limitations that made impossible the inclusion of several advanced uploader, could you give some information about those limitations ?

Thank you for your time,

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests