0 Replies Latest reply on Jul 26, 2007 11:30 AM by krishna Gopu

    Header Conent Injection - Probelm...

    krishna Gopu Newbie

      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 decleration in portlet.xml

      <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>


      the header content gets injected if its done in the portlet rendering jsp here view.jsp

      renderResponse.setProperty("HEADER_CONTENT", "<script type=\"text/javascript\">aafdasdfsafds</script>");


      Please advice.