O'Reilly logo

JSF 1.2 Components by Ian Hlavats

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with modal dialogs

Web browser support for modal dialogs is quite limited. To date, there is no standard browser support for rendering a complex modal dialog window. Fortunately, the ICEfaces library includes such a component.

Rendering a simple modal dialog

To render a simple modal dialog with ICEfaces, we can use the<ice:panelPopup> tag. This tag has a "header" and "body" facet to render the dialog title and message content, respectively.

The modal attribute of the tag expects a Boolean value that determines whether the dialog is modal or not. When this attribute is set to true, the dialog appears centered over a transparent gray background that covers the entire screen. When this attribute is set to false, the dialog is displayed next ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required