This could in following cases
* Displaying custom messages like "Your changes have been saved "(Could also be done using FacesMessage)
![](file:///C:/DOCUME%7E1/sailozm/LOCALS%7E1/Temp/moz-screenshot.png)
![](file:///C:/DOCUME%7E1/sailozm/LOCALS%7E1/Temp/moz-screenshot-1.png)
* Confirmation dialog where we ask user if he/she want to go ahead or not like "Do you want to save the changes?".
* Custom confirmation dialog like "Would you like to create personal or business address?" with 2 buttons.
This component presently supports upto 5 buttons and can be invoked from JavaScript (declaratively) as well as Java (1 line).
Note: This is a functional pattern and uses the raw javascript for finding the dialog. This might not be forward compatible with all versions of ADF.
You can download the source application with test application here.