[jboss-user] [JBoss Portal] - Creating Custom header inside custom .WAR file

Tridib Das do-not-reply at jboss.com
Wed Apr 28 12:21:06 EDT 2010


Tridib Das [http://community.jboss.org/people/tridib197779] created the discussion

"Creating Custom header inside custom .WAR file"

To view the discussion, visit: http://community.jboss.org/message/540062#540062

--------------------------------------------------------------
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
[http://community.jboss.org/message/540062#540062]

Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100428/00465093/attachment.html 


More information about the jboss-user mailing list