As you requested...

portal-layouts.xml:

  | <?xml version="1.0" encoding="UTF-8"?>
  | <layouts>
  |    <layout>
  |       <name>mbsGeneric</name>
  |       <uri>/layouts/mbsGeneric/index.jsp</uri>
  |       <uri state="maximized">/layouts/mbsGeneric/maximized.jsp</uri>
  |       <regions>
  |          <region name="left"/>
  |          <region name="center"/>
  |       </regions>
  |    </layout>
  | </layouts>
  | 

index.jsp:

  | <%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p" %>
  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | <html xmlns="http://www.w3.org/1999/xhtml";>
  | <head>
  | <title>JBoss Portal 2.2 alpha</title>
  | <meta http-equiv="Content-Type" content="text/html;" />
  |    <!-- to correct the unsightly Flash of Unstyled Content. -->
  |    <script type="text/javascript"></script>
  |    <!-- insert header content that was possibly set by portlets on the page 
-->
  |    <p:headerContent />
  |    <!-- inject the theme; default to the MBSDefault theme if nothing is 
selected for the portal or the page -->
  |    <p:theme themeName='mbsDefault' />
  | </head>
  | <body id="body">
  | <div id="portal-container">
  |     <div id="sizer">
  |         <div id="expander">
  |             <div id="logoName"></div>
  |                 <table border="0" cellpadding="0" cellspacing="0" 
id="header-container">
  |                   <tr>
  |                     <td align="center" valign="top" id="header">
  |                        <p:region regionName='navigation' 
regionID='navigation'/>
  |                        <div id="spacer"></div>
  |                     </td>
  |                   </tr>
  |                 </table>
  |             <div id="content-container">
  |                 <!-- insert the content of the 'left' region of the page, 
and assign the css selector id 'regionA' -->
  |                 <p:region regionName='left' regionID='regionA'/>
  |                 <!-- insert the content of the 'center' region of the page, 
and assign the css selector id 'regionB' -->
  |                 <p:region regionName='center' regionID='regionB'/>
  |                 <hr class="cleaner" />
  |                 <div id="footer-container" class="portal-copyright">Powered 
by <a class="portal-copyright" 
href="http://www.jboss.com/products/jbossportal";>JBoss Portal</a><br/>
  |             Theme by <a class="portal-copyright" 
href="http://www.novell.com";>Novell</a>
  |                 </div>
  |             </div>
  |          </div>
  |      </div>
  | </div>
  | </body>
  | </html>
  | 

maximized.jsp:

  | <%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p" %>
  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | <html xmlns="http://www.w3.org/1999/xhtml";>
  | <head>
  |    <title>JBoss Portal 2.2 alpha</title>
  | <meta http-equiv="Content-Type" content="text/html;" />
  |    <!-- to correct the unsightly Flash of Unstyled Content. -->
  |    <script type="text/javascript"></script>
  |    <!-- inject header content that was generated by the portlets on the 
requested page -->
  |    <p:headerContent />
  |    <!-- use the MBSDefault theme if nothing else was defined for the portal 
or the page -->
  |    <p:theme themeName='mbsDefault' />
  | </head>
  | <body id="body">
  | <div id="portal-container"><div id="sizer"><div id="expander"> 
  |     <div id="logoName"></div>
  |    <table border="0" cellpadding="0" cellspacing="0" id="header-container">
  |      <tr>
  |        <td align="center" valign="top" id="header">
  |           <p:region regionName='navigation' regionID='navigation'/>
  |           <div id="spacer"></div>
  |        </td>
  |      </tr>
  |    </table>
  |   <div id="content-container">
  |      <!-- Note: this construct assumes that the 'maximizedRegion' layout 
strategy was chosen for the layout, page or portal -->
  |      <!-- the 'maximizedRegion' strategy assigns the maximized portlet to 
the 'maximized' region -->
  |      <p:region regionName='maximized' regionID='regionMaximized'/>
  |     <hr class="cleaner" />
  |     <div id="footer-container" class="portal-copyright">Powered by
  |          <a class="portal-copyright" 
href="http://www.jboss.com/products/jbossportal";>JBoss Portal</a><br>
  |              Theme by <a class="portal-copyright" 
href="http://www.novell.com";>Novell</a>
  |     </div>
  |   </div>
  |        
  | </div></div></div>
  | </body>
  | </html>
  | 

The theme referenced in the JSPs exists in the WAR and functions as expected  .

-Keith

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3907753#3907753

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3907753


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to