[jboss-user] [JBoss Portal] - Header Conent Injection - Probelm...
explorer
do-not-reply at jboss.com
Thu Jul 26 11:30:40 EDT 2007
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067866#4067866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067866
More information about the jboss-user
mailing list