Add a ConfirmDialog on FileUpload ?

UI Components for JSF
Post Reply
azro
Posts: 12
Joined: 12 Jun 2018, 11:31

19 Jul 2018, 11:31

It is possible to add a ConfirmDialog on a fileUpload component with mode="advanced" (I didn't find out how to make the "simple" version work, witj ajax="false" the backing method is NEVER called ...) si used to work with the advanced version

I won"t provide code, because there is no need to, I already know https://www.primefaces.org/showcase/ui/ ... alog.xhtml but don't how to use it with fileupload

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

10 Oct 2020, 16:21

Will be available in PF 9.0 like this...

Code: Select all

<p:fileUpload listener="#{fileBean.handleFileUpload}" onupload="return confirm('Are you sure?')"/>
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 49 guests