0
我正在使用Websphere(6.1)门户管理页面。我展开'Portlet管理菜单并点击'应用程序'。我看到一个portlet应用程序的列表,但其中一些显示标题列中的“应用程序名称不适用于此应用程序”。门户应用程序“应用程序名称”应该存储在哪里才能显示在此列表中?存储Websphere Portlet应用程序'标题'的位置
我正在使用Websphere(6.1)门户管理页面。我展开'Portlet管理菜单并点击'应用程序'。我看到一个portlet应用程序的列表,但其中一些显示标题列中的“应用程序名称不适用于此应用程序”。门户应用程序“应用程序名称”应该存储在哪里才能显示在此列表中?存储Websphere Portlet应用程序'标题'的位置
这将是portlet.xml中portlet-app元素的id属性。在下面的例子中,这将是“com.test.portlets.testportlet.TestPortlet”。
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
id="com.test.portlets.testportlet.TestPortlet">
<portlet>
<portlet-name>TestPortlet</portlet-name>
<display-name>TestPortlet</display-name>
<display-name xml:lang="en">TestPortlet</display-name>
<portlet-class>com.test.portlets.testportlet.TestPortlet</portlet-class>
<init-param>
<name>wps.markup</name>
<value>html</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<resource-bundle>com.test.portlets.testportlet.nl.TestPortletResource</resource-bundle>
<portlet-info>
<title>TestPortlet</title>
<short-title>TestPortlet</short-title>
<keywords>TestPortlet</keywords>
</portlet-info>
</portlet>
</portlet-app>
谢谢 - 你知道这是记录在哪里吗? – sartoris
它没有具体说明将id属性用作应用程序名称,但下面的链接提到了Portlet应用程序的部署描述符中应该使用的内容。希望有所帮助。 https://www.ibm.com/support/knowledgecenter/en/SSHRKX_6.1.5/com.ibm.wp.ent.doc_v615/dev/wpsptdesc.html https://www.ibm.com/support /knowledgecenter/en/SSHRKX_6.1.5/com.ibm.wp.ent.doc_v615/admin/j2ee.html – Carlos