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
Add a ConfirmDialog on FileUpload ?
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
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 49 guests