Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to capture browser window close event when ADF taskflow is run as a dialog

1015806Jan 2 2015 — edited Jan 27 2015

Hi All,

I'm struggling with a problem related to case when taskflow runs as modal dialog.

Problem description:

I'm invoking a bounded taskflow from unbounded taskflow (adf-config.xml) and have the run-as-dialog configuration enabled in the task-flow-call activity. My bounded taskflow in turn has a remote taskflow call.

The bounded taskflow definition has the return activity defined.

I'm using the commandToolbarButton that opens up my taskflow dialog, it has useWindow=true and has a returnListener registered.

Everything seems to work fine i.e. on finishing some action on the bounded taskflow that opens in the dialog, the control flow returns as expected and my returnListener gets called.

But, it looks like that taskflow return path is not being followed if the dialog browser window is closed. I have some post processing logic that should run if User returns from the dialog by any means.

I could understand from some posts that the returnListener does not get invoked on window close event. Thus, I'm trying to find a solution may be using javascript, to capture the window close event on taskflow dialog close event.

I tried using run-as-dialog with inline popup as well but the same problem exists there too, that is returnListener is not getting called if a User closes the popup by clicking on 'X' button on top right. Some posts suggest the solution to hide that icon by configuring managed bean "oracle$adfinternal$view$rich$dailogInlineDocument" in adfc-config.xml. But, this does not seem to be a recommended approach since it relies on adf internal library and it will affect all other inline popups.

This is an urgent requirement. Thus, I will be grateful to receive some early replies.

Thanks & regards,

Parul

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2015
Added on Jan 2 2015
5 comments
2,083 views