Hello,
You can put your js file, for example, into a directory called "js" in your root
application, then you should edit your jboss-potlet.xml file (located in WEB-INF
directory, or you should create it) to include it in the header content as is showed
below:
| <portlet>
| <portlet-name>YourPortlet</portlet-name>
| <header-content>
| <script type="text/javascript"
src="/js/your_js_file.js"></script>
| </header-content>
| </portlet>
|
That's all.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070193#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...