Modal pop-ups feel like ugly work-arounds in web applications. They seem to be hard to manage, can have problems with pop-up blockers, and the modality can create user confusion.

What are alternatives to pop-ups for the 2 following scenarios:

  1. A user confirmation (eg. delete confirm)

  2. A forced user workflow (eg. user must select an image to continue)

Or if a pop-up is the best UI, is there a good library to supply it for each scenario?

  • have a look at jQuery UI
    – unwichtich
    Commented Dec 20, 2012 at 10:21
  • 1
    Popup blockers won't block overlay divs like <p:dialog> primefaces.org/showcase/ui/dialogHome.jsf
    – BalusC
    Commented Dec 20, 2012 at 11:22
  • a dialog is the better alternative. if you're using dojo, the dijit system has a nice dialog creating system, in jQuery, you'll need to use the jQuery UI.
    – Gonçalo Vieira
    Commented Dec 20, 2012 at 12:05

2 Answers 2


As @unwichtich suggested in the comments, jquery ui provides a good modal dialog with different types of actions required by the user.

Alternatively, you could redirect the user to a page where she has to confirm whatever needs confirming or asking and only let them pass forward.


Since we generally use RichFaces, I can provide you an alternative to pop-ups in rich faces. Use


with appropiate style property to show a pop-up panel..

I am sure a corresponding thing in prime faces should also be present.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.