This content has been marked as final.
Show 2 replies
-
1. Re: Including a javascript in a portlet
je.a.le May 21, 2008 11:26 AM (in response to yanivc24)let's put javascript into : MYWARPROJECT/WEB-INF/js/myscript.js
on your jsp :<%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%> <portlet:defineObjects /> <script src="${renderRequest.contextPath}/js/myscript.js"></script>
note for your script, the project IS the war/ear, it cannot see the portal, theme, etc..
A+ -
2. Re: Including a javascript in a portlet
pavel.myshkin May 25, 2008 5:06 AM (in response to yanivc24)Better add it to portlet header of jboss-portlet.xml