Hi Every one,
Environment:
AS 4.2 ga , Portal 2.6
I created a custom header.jsp which works fine for everything except that when i try to inject the header content from portlet defined in portlet.xml which does not show up on the displayed page.
Snippet from header.jsp
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/> <p:theme themeName="renaissance"/> <p:headerContent/> </head>
<portlet> <portlet-name>ARPortlet</portlet-name> <header-content> <link rel="stylesheet" type="text/css" href="/jsp/themes/bgbasic11.css" title="bgbasic" media="screen" /> </header-content> <portlet-class>jboss.examples.AlfrescoRenditionPrtlet</portlet-class> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <portlet-info> <title>Alfresco Content Display</title> </portlet-info> </portlet>
renderResponse.setProperty("HEADER_CONTENT", "<script type=\"text/javascript\">aafdasdfsafds</script>");