Using an af:popup during long running tasks

For long-running tasks in your application, a pop-up message window can be raised to alert the users that the specific task may take a while. This can be accomplished using a combination of ADF Faces components (af:popup and af:dialog) and some JavaScript code.

In this recipe, we will initiate a long-running task in a managed bean, and raise a pop-up for the duration of the task to alert us to the fact that this operation may take awhile. We will hide the pop-up once the task completes.

Getting ready

You will need to create a skeleton Fusion Web Application (ADF) workspace before you proceed with this recipe. For this, we will use the MainApplication workspace that was developed in ...

Get Oracle JDeveloper 11gR2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.