What i'm saying is, by default, the structure of the pages in the portal is: ___________ | | | |left | center | |___|_______|
That's what i understand according to the tag region displayed in the default-portal.xml. | <page> | <page-name>cache test</page-name> | <window> | <window-name>CachedCounterPortletWindow</window-name> | <instance-ref>CachedCounterPortletInstance</instance-ref> | <region>center</region> | <height>0</height> | </window> | <window> | <window-name>CounterPortletWindow</window-name> | <instance-ref>CounterPortletInstance</instance-ref> | <region>center</region> | <height>1</height> | </window> | </page> | <page> | <page-name>session test</page-name> | <window> | <window-name>PortletSessionPortletWindow</window-name> | <instance-ref>PortletSessionPortletInstance</instance-ref> | <region>center</region> | <height>0</height> | </window> | </page> | <page> | <page-name>missing portlet</page-name> | <window> | <window-name>MissingPortletWindow</window-name> | <instance-ref>MissingPortletInstance</instance-ref> | <region>center</region> | <height>0</height> | </window> | </page> | <page> | <page-name>missing instance</page-name> | <window> | <window-name>MissingInstanceWindow</window-name> | <instance-ref>MissingInstance</instance-ref> | <region>center</region> | <height>0</height> | </window> | </page> | <page> | <page-name>charset test</page-name> | <window> | <window-name>CatalogPortletWindow</window-name> | <instance-ref>CatalogPortletInstance</instance-ref> | <region>left</region> | <height>0</height> | </window> | <window> | <window-name>CharsetPortletWindow</window-name> | <instance-ref>CharsetPortletInstance</instance-ref> | <region>center</region> | <height>0</height> | </window> | </page> | <page> | The region says in which region of the jsp the portlet should shown. But for my portlet, i want a layout like this: _________________ |_____Top________| | | | | |left | center | right | |___|_______|_____| |____Bottom______ | I can change the layout of the portal, modifying the default-portal.xml file: | <property> | <name>org.jboss.portal.property.layout</name> | <value>nodesk</value> | </property> | <!-- set the default render set name (used by the render tag in layouts) --> | <!-- see also portal-renderSet.xml --> | <property> | <name>org.jboss.portal.property.renderSet</name> | <value>emptyRenderer</value> | </property> | and creating my jsp: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | <%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p" %> | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head> | <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/> | | <!-- insert the dynamically determined theme elements here, or use the 'simple-sample' theme by default --> | <p:theme themeName='simple-sample' /> | | <body> | | <!-- header table --> | <table class="headerTable"> | <tr> | <td align="center"> | <img src="/myLayout/images/carris_logo.gif" /> | </td> | </tr> | </table> | <table> | <tr> | <!-- Menus criados pelo portal --> | <td class="topRow"><p:region regionName='top'/></td> | <td><p:region regionName='left'/></td> | </tr> | </table> | | <!-- center table with columns --> | <table width="100%" bgcolor="#FFFFFF"> | <tr> | <td class="centerColumn"><p:region regionName='center'/></td> | <td class="rightColumn"><p:region regionName='right'/></td> | </tr> | </table> | | <!-- footer table --> | <table class="footerTable"> | <tr> | <td align="center"><p:region regionName='bottom'/></td> | </tr> | </table> | | </body> | </html> | But changing default-portal.xml, affects all the portal. I want to know how should i define a layout only for my portlet, and not for all the portal? I hope that i've explained well my problem. Thanks, Pedro View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915477#3915477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915477 ------------------------------------------------------- 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
