Overview
This tag handles the the writing of the necessary Javascript code for widgets contained in the page.
|
|
In Browser
<SCRIPT type="text/javascript" src="jaffa/js/widgets/editbox.js"></SCRIPT>
<SCRIPT type="text/javascript" src="jaffa/js/widgets/button.js"></SCRIPT>
|
|
|
JSP Code
An editbox and button are on the screen
<Portlet:Footer/> |
|
|
How they work
When a widget is being rendered, any necessary Javascript files for its operation are registered, this avoids duplicate javascript references. For example if there are 3 Editboxes on a screen only one editbox.js file will be written. The footer tag at the end of the page writes in these .js references.
|