What kind of header content are you attempting to inject? How do you know that what you attempted to inject was not injected? Did you look at the HTML source for the page, as provided by the browser? The injected content should be right before the < /head > tag.
I am trying to inject .css in the header.
I am checking the HTML source from the finally rendered page. It does not contain the href entry for .css in the HEADER, I am giving in the jboss-portlet.xml for the portlet.
I was referring stylesheet and script in the jboss-portlet.xml.
Just the refernece to stylesheet works for me.
when I refer to script it creates script <script src="xyz.js"/ >instead of
< script src = "xyz.js" >
< /script > in the header. That is causing problem in IE.