Heavenly Journey
Heavenly Journey

Reputation: 57

Multiple PrimeFaces global p:confirmDialog

I looked at the example for confirmDialogs on Primefaces (https://www.primefaces.org/showcase/ui/overlay/confirmDialog.xhtml) enter image description here

And I was wondering if it is possible to reuse the confirmDialog structure twice. More specifically, I have two different extremely common confirm dialogs that could use the structure, but I've been capable of using it only once (by adding the field "global = true" to the confirmDialog). Is it a way to bind the confirm to a specific confirmDialog through ID or something similar? So that I could then have two "global" confirmDialog and decide which of the two to use depending on the need.

Upvotes: 0

Views: 44

Answers (0)

Related Questions