Wednesday, April 27, 2011

Display running time on JSF Page in ADF application

Share this Post

Its been a while i posted anything here. Life became busy as you know that i moved to USA and now pretty much settled with my new job and life routine and hopefully will post regularly some cool stuff.

In this post we will see how to display running time on JSF Page by calling a Javascript method on page load.  in Oracle ADF. for this we need to do the following

1. Write a custom javascript function to get time

2. Use af:resource tag to attach javascript file or function source
3. Drag and drop af:clientListener and provide the name of the function and set the type to load 

4. Drag and drop the af:outputText to the page and set the Id as 'txt'  and client component to true

5. Run the page

Hope you like it download the sample code.

Happy Jdeveloping,
Zeeshan Baig