This content has been marked as final. Show 2 replies
the easiest way (I believe) is to use the declarative injection of header content. In this case you can declare the js file to be included as link in the head tag, by adding this to your jboss-portlet.xml descriptor :
The only limitation is that you need to use the 'generic' layout , or any other layout that features the <p:headerContent /> jsp tag
the easiest way (I believe) is to use the declarative injection of header content.
I'd not suggest this, as it wouldn't be portable.
I think the problem with your original approach is that URL's are probably wrong.
This one is working for me perfectly in Kosmos:
An easy test that you can do is to use a JSP @include to include the JS. If you can see its content in the browser when checking the page source, then the URL is fine.