Issue while deploying multiple portlet present in the same application war having same init param name
Issue
- While deploying 2 portlet in the same war file, the portlet CLASS is the same, and the
tag for is same but different value for tag.
JBoss cannot recognize the difference, and is showing the same portlet each time in one page. Either PortletA and PortletA, or PortletB and PortletB.
Example :
<portlet>
<portlet-name>ABCPortlet</portlet-name>
<display-name>ABC Portlet</display-name>
<portlet-class>my.custom.portlet.class</portlet-class>
<init-param>
<name>errorPage</name>
<value>customValue1</value>
</init-param>
<portlet-info>
<title>ABC Portlet</title>
</portlet-info>
</portlet>
<portlet>
<portlet-name>XYZPortlet</portlet-name>
<display-name>XYZ Portlet</display-name>
<portlet-class>my.custom.portlet.class</portlet-class>
<init-param>
<name>errorPage</name>
<value>customValue2</value>
</init-param>
<portlet-info>
<title>XYZ Portlet</title>
</portlet-info>
</portlet>
Environment
- Red Hat JBoss Portal (JPP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.