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

    Header Conent Injection - Probelm...


      Hi Every one,

      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">
       <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
       <p:theme themeName="renaissance"/>

      Portlet decleration in portlet.xml

       <link rel="stylesheet" type="text/css" href="/jsp/themes/bgbasic11.css" title="bgbasic" media="screen" />
       <title>Alfresco Content Display</title>

      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.