[
https://jira.jboss.org/jira/browse/GTNPORTAL-891?page=com.atlassian.jira....
]
kien nguyen commented on GTNPORTAL-891:
---------------------------------------
I found the problem is the gatein portal has some redundancy items.
The first, there are two same portlet declarations in portlet.xml file at folder
portlet\web\src\main\webapp\WEB-INF and portlet\exoadmin\src\main\webapp\WEB-INF. So we
will remove a code block of portlet that doesn't used in any UI components in
portlet\web\src\main\webapp\WEB-INF\portlet.xml:
<portlet>
<description xml:lang="EN">Portal Navigation
Portlet</description>
<portlet-name>PortalNavigationPortlet2</portlet-name>
<display-name xml:lang="EN">Portal Navigation
Portlet</display-name>
<portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>
<init-param>
<name>webui.configuration</name>
<value>/WEB-INF/conf/portlet/web/PortalNavigationPortlet/webui/configuration.xml</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>help</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<resource-bundle>locale.portlet.portal.PortalNavigationPortlet</resource-bundle>
<portlet-info>
<title>Portal Navigation Portlet</title>
<short-title>Portal Navigation Portlet</short-title>
<keywords>System</keywords>
</portlet-info>
<portlet-preferences>
<preference>
<name>useAJAX</name>
<value>false</value>
<read-only>false</read-only>
</preference>
</portlet-preferences>
</portlet>
Because above code block calls UIPortalNavigationPortlet object in configuration.xml
file, but this UIPortalNavigationPortlet object doesn't be used in anywhere and any UI
components, so we should remove more other items for resolving the root problem:
- Remove UIPortalNavigationPortlet.java file in
\portlet\web\src\main\java\org\exoplatform\portal\webui\component folder.
- Remove UIPortalNavigation2.java file in
\webui\portal\src\main\java\org\exoplatform\portal\webui\navigation folder
- Remove the code block in \portlet\web\src\main\webapp\WEB-INF\gatein-resource.xml:
<!-- PortalNavigationPortlet skins -->
<portlet-skin>
<application-name>web</application-name>
<portlet-name>PortalNavigationPortlet2</portlet-name>
<skin-name>Default</skin-name>
<css-path>/skin/portal/webui/component/UIPortalNavigationPortlet/DefaultStylesheet.css</css-path>
</portlet-skin>
- Remove the code block in \web\eXoResources\src\main\webapp\WEB-INF\gatein-resource.xml:
<param>
<js-module>eXo.portal.UIPortalNavigation2</js-module>
<js-path>/javascript/eXo/portal/UIPortalNavigation2.js</js-path>
</param>
That's all. I tested and i see all other things run good and not be affected.
Portal Navigation Portlet is duplicated
---------------------------------------
Key: GTNPORTAL-891
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-891
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.0.0-GA
Reporter: Joao Paulo Viragine
Priority: Trivial
Fix For: 3.1.0-GA
Attachments: Duplicate Portal Navigation Portlet.png
Portal Navigation Portlet is duplicated
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira