Board index JavaServer Faces General 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

Post 10 Jul 2013, 18:33

Posts: 2
It seems that you won't get support any more if you not a PRO user...
----------
PF 3.4.2
Mojarra (javax.faces 2.1.15)
Tomcat v7.0

Post 10 Jul 2013, 21:57
andyba User avatar
Expert Member

Posts: 2300
Location: Steinfeld, near Bremen/Osnabrück, DE

ivan_skr wrote:
It seems that you won't get support any more if you not a PRO user...

You certainly won't motivate the many volunteers or dev team here if you insult us and break other forum rules which you have just done.
PF 3.4.2, PF 3.5.10, PF 4.x (Elite versions), PF 5, Pf 5.1
Glassfish 4.1, Mojarra 2.x, under Java 7 and 8.
If you haven't read the forum rules read them now
My blog: http://onthefaceofthings.blogspot.de/
PrimeFaces Project


Return to General