Saturday, May 4, 2013

How to invoke a backing bean method before ADF Life cycle ends using finalizer

Use case : Invoke a method in backing bean just before ADF life cycle ends, For eg : Whenever use closes the browser window of a specific page fragment, Want to invoke a method in backing bean.

Implementation

Define a finalizer entry in taskflow corresponds to the page fragment as shown below, releaseLock() is the method defined in CustomerBean.

This will invoke releaseLock() method whenever exit from specific page fragment.

<finalizer id="1">#{pageFlowScope.CustomerBean.releaseLock}</finalizer>

1 comment:

  1. Looking forward to reading more. Great post.Really looking forward to read more. Will read on…
    web methods training

    ReplyDelete