Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Including Javascript
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
<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