please be careful with the term you are using. I'm still confused by your use 
of 'portlet', but anyway: I hope I got it now. 

You can have a layout for the entire portal, but you can overwrite it for 
individual pages via page properties. You can define a jsp that does your 
layout with top, left,center,right,bottom, and assign it only to the page(s) 
that you want it for. All other pages in the portal will still get the layout 
that was defined for the portal (with the center, left, and navigation regions)

Here is an example for such a page level layout: 


  | <deployments>
  |    <deployment>
  |       <parent-ref/>
  |       <if-exists>keep</if-exists>
  |       <portal>
  |          <portal-name>default</portal-name>
  |          <properties>
  |             <property>
  |                <name>layout.id</name>
  |                <value>generic</value>
  |             </property>
  |             ........
  |          </properties>
  |          <page>
  |             <page-name>myPage</page-name>
  |          <properties>
  |             <property>
  |                <name>layout.id</name>
  |                <value>myspecialLayout</value>
  |             </property>
  |             ........
  |          </properties>
  | 
  |     .....  
  |     </portal>
  |  ....
  | </deployments>
  | 

'myPage' will get rendered with 'myspecialLayout', all other pages in the 
'default' portal will be rendered with the 'generic' layout. 

Please use the 'generic' layout as your starting point for a customized layout. 
The 'nodesk' layout is still in the 2.0 way (left there for compatibility 
reasons) of layouts and themes, and a lot harder to maintain, and less 
flexible. 


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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to