This post is about a combination of best practices combined together. The best practices are the UI-Manager pattern (The UIManager Pattern | The Groundside Blog by Duncan Mills), using JavaScript in a fragment (Gotcha when using JavaScript in ADF Regions | Oracle OTN Harvest: Oracle ADF and MAF Blog) and running a JavaScript function when the fragment is loaded the first time (Lazy Initalizing Beans).
Use Case
We create a digital clock in a fragment. This sounds simple, but there are a couple of things to think about.
1. How to set up a digital clock in JavaScript
2. A fragment is not a document, so we can’t use the af:document to load JavaScript in a fragment
3. Calling a JavaScript method on the inital load of the fragment from a bean Read the complete article here.
For regular information become a member in the Developer Partner Community please register here.
Blog
Twitter
LinkedIn
Facebook
Meetups
Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic