Approach 3: Specify the JavaScript codes directly with defer. The JavaScipt codes are evaluated after the widget is instantiated and mounted. Moreover, this
references to the script widget, so you can access the widgets as follows.
<script defer="true"> this.getFellow('l').setValue('new value'); //... </script>
Alternative to {@link Script}, you can use the script directive as shown below..
<:?script src="/js/mine.js"?/> <:?script content="jq.IE6_ALPHAFIX=/.png/"?/>
@author tomyeh
|
|