Hi,
I´m trying to use two fileupload component in the same form. I need one for upload an image and other for a document.
Someone knows how to do something like that??? Maybe it could be a bug of primefaces.
I´m using primefaces-3.0-M3 in Firefox5 and google Chrome.
In my case, only the second fileupload works fine. If i click the first upload, nothing happen. But if i click the second fileupload i can see the same progress bar during the upload in both fileupload component. This is what i see:
and i need that each fileupload show its own progress bar when i click on its.
I´m doing test with this code:
<h:form>
<p:fileUpload id="photo"/>
<p:fileUpload id="document"/>
</h:form>
Sorry for my english...
two or more file upload in the same form
-
- Posts: 61
- Joined: 23 Jun 2011, 11:40
Same problem.
Last edited by rdeoliveira on 31 Aug 2011, 14:46, edited 1 time in total.
JSF 2.0
Primefaces 3.0.M3
Tomcat 7.0
--
French user of primefaces
Primefaces 3.0.M3
Tomcat 7.0
--
French user of primefaces
Hi,
the problem was that i have to use two fileupload inside one wizard´s tab. I use what you said and it works fine:
<h:form>
<p:wizard>
<p:tab>
<h:form>
<p:fileupload id="file1" />
</h:form>
<h:form>
<p:fileupload id="file2" />
</h:form>
</p:tab>
</p:wizard>
</h:form>
I don´t know if it is a correct way to do it, but it works....
Thanks for helping me.
the problem was that i have to use two fileupload inside one wizard´s tab. I use what you said and it works fine:
<h:form>
<p:wizard>
<p:tab>
<h:form>
<p:fileupload id="file1" />
</h:form>
<h:form>
<p:fileupload id="file2" />
</h:form>
</p:tab>
</p:wizard>
</h:form>
I don´t know if it is a correct way to do it, but it works....
Thanks for helping me.
-
- Posts: 61
- Joined: 23 Jun 2011, 11:40
This solution doesn't work in Internet Explorer. IE doesn't allow nested forms.
Have you any workaround for doing this in IE. Thanks again.
Have you any workaround for doing this in IE. Thanks again.
JSF 2.0
Primefaces 3.0.M3
Tomcat 7.0
--
French user of primefaces
Primefaces 3.0.M3
Tomcat 7.0
--
French user of primefaces
-
- Information
-
Who is online
Users browsing this forum: No registered users and 42 guests