Implementing dialog windows
Traditional desktop applications have access to a richer set of dialog windows than available to typical web browsers. While alert and confirm dialogs can be launched using JavaScript, it is impossible to render a more complex dialog box; for example, a color chooser dialog, using these built-in windows.
A common solution to this problem is to implement dialogs using floating windows. The Trinidad framework includes built-in support for creating custom dialog windows using this technique. These dialogs are Ajax enabled, and support convenient features such as the ability to pass the selected value back to the page that originally launched the dialog.
Note
Dialog window display options
The examples in this chapter use the default display mode for Trinidad dialog windows. An enhanced display mode that uses popup HTML<iframe>
elements can be activated by adding the following to web.xml:
<context-param> <param-name>oorg.apache.myfaces.trinidad.renderkit...