[jboss-dev-forums] [Design of JBoss Portal] - Re: Problem using javascript files in Portal

berniemiller do-not-reply at jboss.com
Fri Feb 2 09:54:41 EST 2007


For some reason the coplete message did not appear in my original posting.

I am trying to create a portlet that contains alot of javascript files.  In my index.js page I use the script tag with the src attribute set to the js path and filename and it does not work.  JBoss seems to be converting the js files to HTML and replacing the content.  If I put the js directly in the index.jsp page then it works fine.  However, I have obout 50 js files so i don't want to do this.  I have used the script tag in a regular jboss web app and it worked.  it just seems to have a problem in a portlet.


<script type="text/javascript" src="../js/test.js"></script>

I looked at using portal themes but this seems too cumbersome for alot of js files.  Plus the js contains business logic and not just presentation logic.

Thanks in advance!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010059#4010059

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



More information about the jboss-dev-forums mailing list