【问题标题】:What is the equivalent file of liferay-portlet.xml in liferay 7?liferay 7 中 liferay-portlet.xml 的等效文件是什么?
【发布时间】:2017-04-15 21:13:52
【问题描述】:

我想在 liferay 7 中添加自定义用户通知。为此,如果我使用 liferay 6.2,我将不得不输入 user-notification-definitionsuser-notification-handler -class 在 liferay-portlet.xml 中。但是在liferay中,我想问这些条目放在哪里。请帮助..thanx提前..

【问题讨论】:

    标签: liferay liferay-7


    【解决方案1】:

    你也可以在这里找到类似的属性:

    https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/portlet-descriptor-to-osgi-service-property-map

    根据上面的链接,通过 OSGI 属性不支持用户通知定义。

    谢谢,
    Ankit

    【讨论】:

      【解决方案2】:

      您仍然可以在旧版 Portlet 中使用此文件(打包在 WAR 文件中)。

      对于 OSGi 组件,该文件中的设置最终会出现在组件的属性中。那些以javax.portlet 开头的属性反映了来自portlet.xml 的设置,那些以com.liferay 开头的那些反映了那些为liferay-portlet.xml 记录的设置

      【讨论】:

      • 感谢 Olaf 的回复。这是否意味着我必须在 liferay-portlet.xml 中进行输入?如果是,它位于哪里?我在 portlet 中找不到它。我是否需要在我的 portlet 中创建一个名为 liferay-portlet.xml 的自定义文件?
      • 你在打包WAR文件吗? : 是的。您是否正在创建 OSGi 捆绑包? : 没有
      猜你喜欢
      • 2013-01-15
      • 1970-01-01
      • 2012-06-17
      • 1970-01-01
      • 1970-01-01
      • 2011-10-22
      • 2016-07-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多