fileupload trigger

UI Components for JSF
Post Reply
Manu206
Posts: 33
Joined: 25 Mar 2011, 16:15

20 Oct 2011, 14:19

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

redder
Posts: 5
Joined: 16 Apr 2011, 14:28

16 Jul 2012, 23:26

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

Code: Select all

<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

ivan_skr
Posts: 2
Joined: 24 Jun 2012, 17:18

10 Jul 2013, 18:33

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

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

10 Jul 2013, 21:57

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 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests