<p:fileUpload open and close p:dialog?

UI Components for JSF
Post Reply
vished
Posts: 479
Joined: 02 Feb 2014, 17:38

01 Jun 2019, 11:24

Hi all,

How can I open a dialog and close it after the upload was sucessful.
I´ve tried:
<p:fileUpload onstart="PF('statusDialog').show()" onsuccess="PF('statusDialog').hide()"

-> It´s only open the dialog, but not close it?
PF 8.0

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

01 Jun 2019, 18:29

Try oncomplete.
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: No registered users and 46 guests