Board index PrimeFaces Core fileupload trigger

fileupload trigger

Components, Ajax Framework, Utilities and More.

Post 20 Oct 2011, 14:19

Posts: 30
I'm using the fileupload component since 2.2.1 release. Now with 3M3 I recognized that something changed.
I triggered the fileupoload in my managed bean with context.execute("fileupload.upload()").
But it seems that this function is deprecated?!?

Any idea how to trigger fileupload with javascript or with a custom button in 3M3 or 3M4?
Primefaces 3.5
Mojarra 2.1.9
Netbeans 7.3.x
Glassfish 3.2.1

Post 16 Jul 2012, 23:26

Posts: 5
Hi,
I've been trying to achieve that for a while... has anyone found a way to do that?
I've tried to simulate a click on all the elements of
<div class="ui-fileupload ui-widget">
(which seems to be the root element for the upload control) using jQuery, but I've got no success on that. I also looked at the fileupload.js, but (if I'm not wrong) it doesn't seem to have any function for show the upload box (to select the files)...
Any ideas?

Using:
Primefaces 3.3.1; Mojarra 2.1.10; Tomcat 7.0.23; Chrome 18; Ubuntu Linux 12.04

Regards,

Redder


Return to PrimeFaces Core