In my portlets, I never used WebAppRegistry and also changed all the descriptors.
portlet-instances.xml
| <?xml version="1.0" encoding="UTF-8" standalone="yes"
?>
|
| <deployments>
|
| <deployment>
| <instance>
| <instance-id>HelloWorldPortletInstance</instance-id>
| <component-ref>HelloWorldPortlet</component-ref>
| </instance>
| </deployment>
|
| <deployment>
| <instance>
| <instance-id>MyPortletInstance</instance-id>
| <component-ref>MyPortlet</component-ref>
| </instance>
| </deployment>
|
| <deployment>
| <instance>
| <instance-id>ProductCategoryPortletInstance</instance-id>
| <component-ref>ProductCategoryPortlet</component-ref>
| </instance>
| </deployment>
|
|
| <deployment>
| <instance>
| <instance-id>RegionPortletInstance</instance-id>
| <component-ref>RegionPortlet</component-ref>
| </instance>
| </deployment>
|
|
| <deployment>
| <instance>
| <instance-id>CityPortletInstance</instance-id>
| <component-ref>CityPortlet</component-ref>
| </instance>
| </deployment>
|
| <deployment>
| <instance>
| <instance-id>ProductPortletInstance</instance-id>
| <component-ref>ProductPortlet</component-ref>
| </instance>
| </deployment>
|
| </deployments>
|
|
|
reales-object.xml
|
| <?xml version="1.0" encoding="UTF-8"?>
| <deployments>
| <deployment>
| <parent-ref />
| <if-exists>overwrite</if-exists>
|
| <portal>
| <portal-name>reales</portal-name>
|
| <properties>
| <!-- Set the layout for the default portal -->
| <!-- see also portal-layouts.xml -->
| <property>
| <name>layout.id</name>
| <!--
| <value>generic</value>
| -->
| <value>realeslayout-classic</value>
| </property>
| <!-- Set the theme for the default portal -->
| <!-- see also portal-themes.xml -->
| <property>
| <name>theme.id</name>
| <value>realestheme-classic</value>
| <!--
| <value>Nphalanx</value>
| -->
| </property>
| <!-- set the default render set name (used by the render tag in layouts)
-->
| <!-- see also portal-renderSet.xml -->
| <property>
| <name>theme.renderSetId</name>
| <value>divRenderer</value>
| </property>
| <!-- set the default strategy name (used by the strategy interceptor) -->
| <!-- see also portal-strategies.xml -->
| <property>
| <name>layout.strategyId</name>
| <value>maximizedRegion</value>
| </property>
| </properties>
| <supported-modes>
| <mode>view</mode>
| <mode>edit</mode>
| <mode>help</mode>
| </supported-modes>
| <supported-window-states>
| <window-state>normal</window-state>
| <window-state>minimized</window-state>
| <window-state>maximized</window-state>
| </supported-window-states>
|
| <page>
| <page-name>default</page-name>
| <properties>
| <property>
| <name>theme.id</name>
| <value>realestheme-classic</value>
| </property>
| <property>
| <name>order</name>
| <value>1</value>
| </property>
| <property>
| <name>resourceKey</name>
| <value>page.home</value>
| </property>
| </properties>
|
|
| <window>
| <!-- NAVIGATION BAR -->
| <window-name>navPortletWindow</window-name>
| <instance-ref>
| NavigationPortletInstance
| </instance-ref>
| <region>navigation</region>
| <height>0</height>
| <properties>
| <!-- use the window renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.windowRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the decoration renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.decorationRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the portlet renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.portletRendererId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
|
| <!-- LEFT PANEL -->
| <window>
| <window-name>catPortletWindow</window-name>
| <instance-ref>CatalogPortletInstance</instance-ref>
| <region>left</region>
| <height>0</height>
| </window>
|
|
| <window>
| <window-name>ProductPortletWindow</window-name>
| <instance-ref>ProductPortletInstance</instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
|
|
| <page>
| <page-name>House</page-name>
| <window>
| <!-- NAVIGATION BAR -->
| <window-name>navPortletWindow</window-name>
| <instance-ref>
| NavigationPortletInstance
| </instance-ref>
| <region>navigation</region>
| <height>0</height>
| <properties>
| <!-- use the window renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.windowRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the decoration renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.decorationRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the portlet renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.portletRendererId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
|
| <!-- LEFT PANEL -->
| <window>
| <window-name>catPortletWindow</window-name>
| <instance-ref>
| CatalogPortletInstance
| </instance-ref>
| <region>left</region>
| <height>0</height>
| </window>
|
|
| <!-- CENTER PANEL -->
| <window>
| <window-name>ProductPortletWindow</window-name>
| <instance-ref>
| ProductPortletInstance
| </instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
|
|
| <security-constraint>
| <policy-permission>
| <unchecked />
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
|
| <page>
| <page-name>City</page-name>
|
| <window>
| <!-- NAVIGATION BAR -->
| <window-name>navPortletWindow</window-name>
| <instance-ref>
| NavigationPortletInstance
| </instance-ref>
| <region>navigation</region>
| <height>0</height>
| <properties>
| <!-- use the window renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.windowRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the decoration renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.decorationRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the portlet renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.portletRendererId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
|
| <!-- LEFT PANEL -->
| <window>
| <window-name>catPortletWindow</window-name>
| <instance-ref>
| CatalogPortletInstance
| </instance-ref>
| <region>left</region>
| <height>0</height>
| </window>
|
| <window>
| <window-name>CityPortletWindow</window-name>
| <instance-ref>CityPortletInstance</instance-ref>
| <region>center</region>
| <height>1</height>
| </window>
|
| <security-constraint>
| <policy-permission>
| <unchecked />
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
|
|
| <page>
| <page-name>Category</page-name>
|
| <window>
| <!-- NAVIGATION BAR -->
| <window-name>navPortletWindow</window-name>
| <instance-ref>
| NavigationPortletInstance
| </instance-ref>
| <region>navigation</region>
| <height>0</height>
| <properties>
| <!-- use the window renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.windowRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the decoration renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.decorationRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the portlet renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.portletRendererId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
|
| <!-- LEFT PANEL -->
| <window>
| <window-name>catPortletWindow</window-name>
| <instance-ref>
| CatalogPortletInstance
| </instance-ref>
| <region>left</region>
| <height>0</height>
| </window>
|
| <window>
| <window-name>
| ProductCategoryPortletWindow
| </window-name>
| <instance-ref>
| ProductCategoryPortletInstance
| </instance-ref>
| <region>center</region>
| <height>2</height>
| </window>
|
| <security-constraint>
| <policy-permission>
| <unchecked />
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
|
| <page>
| <page-name>Region</page-name>
|
| <window>
| <!-- NAVIGATION BAR -->
| <window-name>navPortletWindow</window-name>
| <instance-ref>
| NavigationPortletInstance
| </instance-ref>
| <region>navigation</region>
| <height>0</height>
| <properties>
| <!-- use the window renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.windowRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the decoration renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.decorationRendererId</name>
| <value>emptyRenderer</value>
| </property>
| <!-- use the portlet renderer from the emptyRenderer renderSet -->
| <property>
| <name>theme.portletRendererId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
|
| <!-- LEFT PANEL -->
| <window>
| <window-name>catPortletWindow</window-name>
| <instance-ref>
| CatalogPortletInstance
| </instance-ref>
| <region>left</region>
| <height>0</height>
| </window>
|
| <window>
| <window-name>RegionPortletWindow</window-name>
| <instance-ref>
| RegionPortletInstance
| </instance-ref>
| <region>center</region>
| <height>3</height>
| </window>
|
| <security-constraint>
| <policy-permission>
| <unchecked />
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
|
|
| <security-constraint>
| <policy-permission>
| <unchecked />
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
| </portal>
| </deployment>
| </deployments>
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956822#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...