[jboss-user] [JBoss Portal] - Re: where should i include my javascript file?

tufla do-not-reply at jboss.com
Thu Aug 2 12:55:07 EDT 2007


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#4070193

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070193



More information about the jboss-user mailing list