Is it possible to define the order of initialization of portlets on start of portal?

杀马特。学长 韩版系。学妹 提交于 2019-12-11 00:44:37

问题


I would like to specify the order of initialization of portlets when the portal server starts.

Is it possible?


回答1:


Yes, it is possible.

You can specify the order of deployment of the plugins by setting the required-deployment-contexts property in liferay-plugin-package.properties of the dependent portlet.

Examples:

If your portlet my-custom-portlet depends on other plugins then you can specify as follows:

1) For single dependency required-deployment-contexts:

required-deployment-contexts=my1-other-portlet

2) For multiple required-deployment-contexts:

required-deployment-contexts=\
    my-other-theme,\
    my1-other-portlet,\
    my-other-hook,\
    my2-other-portlet

Hope this helps.




回答2:


Yes, you can specify the order of deployment over the definition of portlet dependency. Set the required-deployment-contexts=MyPrevPortlet in liferay-plugin-package.properties.



来源:https://stackoverflow.com/questions/11178948/is-it-possible-to-define-the-order-of-initialization-of-portlets-on-start-of-por

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!