Business Console 10.11 | webMethods Business Console Documentation | Developing Gadgets for Business Console | Creating User Interface for Gadgets | Adding Static or Dynamic Content
 
Adding Static or Dynamic Content
You can add your static content to the view.xhtml file.
You can build dynamic content in the view.xhtml file by using one of these methods:
*Invoking services written in controller.js
*Importing external Javascript libraries and using the function in the Javascript libraries
Note:
For importing JavaScript library, use <div oc-lazy-load="jsFileName.js"/> tag instead of the <script import="jsFileName.js"/> tag. The normal <script import="jsFileName.js"/> tag will not work. You should not import the internally generated.js JavaScript files such as custom.js that are automatically available in the controller.js and view.xhtml files.