Community

Creating Custom header inside custom .WAR file

created by Tridib Das in JBoss Portal - View the full discussion

Hi All,

I have created a custom .WAR file consisting of the Theme and Layouts .

I have also merged the header.jsp and tabs.jsp usally resides in (\server\default\deploy\jboss-portal.sar\portal-core.war\WEB-INF\jsp\header).

 

Jboss portal server is able to pick up the themes and layouts from the custom war file, but it is unable to pick up the header.jsp and tabs.jsp from the custom .WAR file.

 

If I am updating the entry inside the(/deploy/jboss-portal.sar/META-INF/jboss-service.xml)

 

<mbean
      code="org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor"
      name="portal:service=Interceptor,type=Command,name=PageCustomizer"
      xmbean-dd=""
      xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
      <xmbean/>
      <attribute name="TargetContextPath">/portal-core</attribute> /*------Updating this entry------*/
      <attribute name="HeaderPath">/WEB-INF/jsp/header/header.jsp</attribute>
      <attribute name="TabsPath">/WEB-INF/jsp/header/tabs.jsp</attribute>
      <!-- Overrides the value of core.login.namespace in config.xml  -->
      <!--  attribute name="LoginNamespace">dashboard</attribute -->
      <depends
         optional-attribute-name="Config"
         proxy-type="attribute">portal:service=ServerConfig</depends>
      <depends
         optional-attribute-name="PortalAuthorizationManagerFactory"
         proxy-type="attribute">portal:service=PortalAuthorizationManagerFactory</depends>
      <depends
         optional-attribute-name="PortalObjectContainer"
         proxy-type="attribute">portal:container=PortalObject</depends>
     
   </mbean>

 

then only it is able to pick up from the .WAR file.

If there is any work around without updating the entry, we can do so that it header.jsp will pick up from the custom .WAR file.

Please reply me back.

 

Thanks

Tridib

Reply to this message by going to Community

Start a new discussion in JBoss Portal at Community