Including Javascript

Martin Phee, modified 14 Years ago. Junior Member Posts: 25 Join Date: 5/9/11 Recent Posts
Does
<container-runtime-option>
<name>javax.portlet.renderHeaders</name>
<value>true</value>
</container-runtime-option>
or
<header-portal-javascript>/js/menu.js</header-portal-javascript>

work with liferay 6.0.6? I've tried both to allow me to include a javascipt file in my portlet and it does work.

When I used the header-portlet-javascript or the header-portal-javascript I can see it in the portletcontext, but it doesn't include the file.

LIferay 6.0.6
Spring MVC Portlet