[jboss-user] [JBoss Portal] - Re: automatically deploy one portlet inside the dashboard on
tulip
do-not-reply at jboss.com
Tue Jul 15 13:27:22 EDT 2008
Hi,
ENV Details:
JBoss portal - 2.6.5.SP1
Jboss App Server - 4.2.2.GA
I have the same requirement of adding my portlet as an alreday existing portlet on dashboard page and removing the default portlets that appear on dashboard - CMSPortlet, JSPPortlet, IdentityUserPortlet. As suggested in this thread, I tried modifying default-object.xml as shown below, but it does not work for me. I cannot see my portlet on the dashboard and can still see the 3 default portlets. Any suggestions ?
here are the contents of my default-object.xml
<?xml version="1.0" encoding="UTF-8"?>
| <!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ~ JBoss, a division of Red Hat ~
| ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
| ~ contributors as indicated by the @authors tag. See the ~
| ~ copyright.txt in the distribution for a full listing of ~
| ~ individual contributors. ~
| ~ ~
| ~ This is free software; you can redistribute it and/or modify it ~
| ~ under the terms of the GNU Lesser General Public License as ~
| ~ published by the Free Software Foundation; either version 2.1 of ~
| ~ the License, or (at your option) any later version. ~
| ~ ~
| ~ This software is distributed in the hope that it will be useful, ~
| ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
| ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
| ~ Lesser General Public License for more details. ~
| ~ ~
| ~ You should have received a copy of the GNU Lesser General Public ~
| ~ License along with this software; if not, write to the Free ~
| ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
| ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org. ~
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
|
| <!DOCTYPE deployments PUBLIC
| "-//JBoss Portal//DTD Portal Object 2.6//EN"
| "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
|
| <deployments>
| <deployment>
| <context>
| <context-name/>
| <properties>
| <!--
| | Set the layout for the default portal, see also portal-layouts.xml.
| -->
| <property>
| <name>layout.id</name>
| <value>generic</value>
| </property>
| <!--
| | Set the theme for the default portal, see also portal-themes.xml.
| -->
| <property>
| <name>theme.id</name>
| <value>renaissance</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>
| <!--
| -->
| <property>
| <name>portal.defaultObjectName</name>
| <value>default</value>
| </property>
|
| <!-- Control policy config -->
| <property>
| <name>control.portal.access_denied</name>
| <value>ignore</value>
| </property>
| <property>
| <name>control.portal.unavailable</name>
| <value>ignore</value>
| </property>
| <property>
| <name>control.portal.not_found</name>
| <value>ignore</value>
| </property>
| <property>
| <name>control.portal.internal_error</name>
| <value>jsp</value>
| </property>
| <property>
| <name>control.portal.error</name>
| <value>jsp</value>
| </property>
| <property>
| <name>control.portal.resource_uri</name>
| <value>/WEB-INF/jsp/error/portal.jsp</value>
| </property>
| <property>
| <name>control.page.access_denied</name>
| <value>hide</value>
| </property>
| <property>
| <name>control.page.unavailable</name>
| <value>hide</value>
| </property>
| <property>
| <name>control.page.not_found</name>
| <value>hide</value>
| </property>
| <property>
| <name>control.page.internal_error</name>
| <value>jsp</value>
| </property>
| <property>
| <name>control.page.error</name>
| <value>jsp</value>
| </property>
| <property>
| <name>control.page.resource_uri</name>
| <value>/WEB-INF/jsp/error/page.jsp</value>
| </property>
| </properties>
| </context>
| </deployment>
| <deployment>
| <parent-ref/>
| <if-exists>keep</if-exists>
| <portal>
| <portal-name>default</portal-name>
| <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>
| <security-constraint>
| <policy-permission>
| <action-name>viewrecursive</action-name>
| <action-name>personalizerecursive</action-name>
| <unchecked/>
| </policy-permission>
| </security-constraint>
| <page>
| <page-name>default</page-name>
| <display-name xml:lang="en">Home</display-name>
| <display-name xml:lang="it">Home</display-name>
| <display-name xml:lang="es">Home</display-name>
| <display-name xml:lang="fr">Accueil</display-name>
| <properties>
| <property>
| <name>order</name>
| <value>1</value>
| </property>
| </properties>
| <!--
| <window>
| <window-name>JSPPortletWindow</window-name>
| <instance-ref>JSPPortletInstance</instance-ref>
| <region>left</region>
| <height>0</height>
| </window>
| <window>
| <window-name>CMSWindow</window-name>
| <content>
| <content-type>cms</content-type>
| <content-uri>/default/index.html</content-uri>
| </content>
| <region>center</region>
| <height>1</height>
| </window>
| <window>
| <window-name>IdentityUserPortletWindow</window-name>
| <instance-ref>IdentityUserPortletInstance</instance-ref>
| <region>left</region>
| <height>1</height>
| </window>
| <window>
| <window-name>CurrentUsersPortletWindow</window-name>
| <instance-ref>CurrentUsersPortletInstance</instance-ref>
| <region>left</region>
| <height>2</height>
| </window>
| -->
| <window>
| <window-name>CommissionWebReportPortletWindow</window-name>
| <instance-ref>CommissionWebReportPortletInstance</instance-ref>
| <region>center</region>
| <height>1</height>
| </window>
| </page>
| </portal>
| </deployment>
| <deployment>
| <if-exists>keep</if-exists>
| <context>
| <context-name>dashboard</context-name>
| <properties>
|
| <!--
| | Set the layout for the default portal, see also portal-layouts.xml.
| -->
| <property>
| <name>layout.id</name>
| <value>generic</value>
| </property>
|
| <!--
| | Set the theme for the default portal, see also portal-themes.xml.
| -->
| <property>
| <name>theme.id</name>
| <value>renaissance</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 dnd property
| -->
| <property>
| <name>theme.dyna.dnd_enabled</name>
| <value>true</value>
| </property>
|
| <!--
| | Set the partial refresh property
| -->
| <property>
| <name>theme.dyna.partial_refresh_enabled</name>
| <value>false</value>
| </property>
|
| <!-- Control policy config -->
| <property>
| <name>control.portal.access_denied</name>
| <value>ignore</value>
| </property>
| <property>
| <name>control.portal.unavailable</name>
| <value>ignore</value>
| </property>
| <property>
| <name>control.portal.not_found</name>
| <value>ignore</value>
| </property>
| <property>
| <name>control.portal.internal_error</name>
| <value>jsp</value>
| </property>
| <property>
| <name>control.portal.error</name>
| <value>jsp</value>
| </property>
| <property>
| <name>control.portal.resource_uri</name>
| <value>/WEB-INF/jsp/error/portal.jsp</value>
| </property>
| <property>
| <name>control.page.access_denied</name>
| <value>hide</value>
| </property>
| <property>
| <name>control.page.unavailable</name>
| <value>hide</value>
| </property>
| <property>
| <name>control.page.not_found</name>
| <value>hide</value>
| </property>
| <property>
| <name>control.page.internal_error</name>
| <value>jsp</value>
| </property>
| <property>
| <name>control.page.error</name>
| <value>jsp</value>
| </property>
| <property>
| <name>control.page.resource_uri</name>
| <value>/WEB-INF/jsp/error/page.jsp</value>
| </property>
| </properties>
| </context>
| </deployment>
| <deployment>
| <parent-ref/>
| <if-exists>keep</if-exists>
| <portal>
| <portal-name>template</portal-name>
| <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>
| <display-name xml:lang="en">Home</display-name>
| <display-name xml:lang="it">Home</display-name>
| <display-name xml:lang="es">Home</display-name>
| <display-name xml:lang="fr">Accueil</display-name>
| <properties>
| <property>
| <name>order</name>
| <value>1</value>
| </property>
| </properties>
| <!--
| <window>
| <window-name>JSPPortletWindow</window-name>
| <instance-ref>JSPPortletInstance</instance-ref>
| <region>left</region>
| <height>0</height>
| </window>
| <window>
| <window-name>CMSWindow</window-name>
| <content>
| <content-type>cms</content-type>
| <content-uri>/default/index.html</content-uri>
| </content>
| <region>center</region>
| <height>0</height>
| </window>
|
| <window>
| <window-name>IdentityUserPortletWindow</window-name>
| <instance-ref>IdentityUserPortletInstance</instance-ref>
| <region>left</region>
| <height>1</height>
| </window>
| -->
| <window>
| <window-name>CommissionWebReportPortletWindow</window-name>
| <instance-ref>CommissionWebReportPortletInstance</instance-ref>
| <region>center</region>
| <height>1</height>
| </window>
| </page>
| </portal>
| </deployment>
| <deployment>
| <parent-ref/>
| <if-exists>keep</if-exists>
| <portal>
| <portal-name>admin</portal-name>
| <supported-modes>
| <mode>view</mode>
| <mode>edit</mode>
| <mode>help</mode>
| <mode>admin</mode>
| </supported-modes>
| <supported-window-states>
| <window-state>normal</window-state>
| <window-state>minimized</window-state>
| <window-state>maximized</window-state>
| </supported-window-states>
| <security-constraint>
| <policy-permission>
| <action-name>viewrecursive</action-name>
| <role-name>Admin</role-name>
| </policy-permission>
| </security-constraint>
| <page>
| <page-name>default</page-name>
| <display-name xml:lang="en">Admin</display-name>
| <display-name xml:lang="it">Amministrazione</display-name>
| <display-name xml:lang="es">Administración</display-name>
| <display-name xml:lang="fr">Administration</display-name>
| <window>
| <window-name>AdminPortletWindow</window-name>
| <instance-ref>AdminPortletInstance</instance-ref>
| <region>center</region>
| <height>0</height>
| <properties>
| <property>
| <name>theme.renderSetId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
| <properties>
| <property>
| <name>layout.id</name>
| <value>1column</value>
| </property>
| </properties>
| </page>
| <page>
| <page-name>Members</page-name>
| <display-name xml:lang="en">Members</display-name>
| <display-name xml:lang="it">Membri</display-name>
| <window>
| <window-name>IdentityAdminPortletWindow</window-name>
| <instance-ref>IdentityAdminPortletInstance</instance-ref>
| <region>center</region>
| <height>0</height>
| <properties>
| <property>
| <name>theme.renderSetId</name>
| <value>emptyRenderer</value>
| </property>
| </properties>
| </window>
| <properties>
| <property>
| <name>layout.id</name>
| <value>1column</value>
| </property>
| </properties>
| </page>
| </portal>
| </deployment>
| </deployments>
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164562#4164562
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164562
More information about the jboss-user
mailing list