Sunday, February 23, 2014

How to load long runing Taskflows in a Page or Page Fragment using inlineFrame & How to embed taskflow into inlineFrame ?


This blog explains about loading running taskflows onto a page or page fragment. So that when page getting loaded we don't need to wait until all the long running taskflows get loaded.

- Create a taskflow as shown below,  This approach will work only with pages and not with fragments.       unselect 'Use Page Fragments' and  set 'url-invoke-allowed' value to 'URL Invoke' attribute as shown below.



- Drag '<af:inlineFrame"' component from the component pallet, and set 'src' attribute value as shown below. In this example, I used above taskflow as 'src'

- Run you page, and you can notice rest of all the components will be rendered though <af:inlineFrame> associated taskflow takes time to load, and user can click any command button/link while 'inlineFrame' is being loaded.



No comments:

Post a Comment