开发者

Make liferay portlet non instanceable

开发者 https://www.devze.com 2023-03-21 07:53 出处:网络
How can I make my portlet non instanceable accross the liferay instance. I have read about it in the forum but there was no mention of how t开发者_C百科o do it.You can specify a portlet as non instanc

How can I make my portlet non instanceable accross the liferay instance. I have read about it in the forum but there was no mention of how t开发者_C百科o do it.


You can specify a portlet as non instanceable by putting

<liferay-portlet-app>
    ...
    <portlet>
        ...
        <instanceable>false</instanceable>
        ...
    </portlet>
    ...
</liferay-portlet-app>

in the file liferay-portlet.xml

Beware of the right order of tags, according to the dtd (linked the dtd version 5.2, shouldn't have changed much though)

Also have a look here Liferay docu

0

精彩评论

暂无评论...
验证码 换一张
取 消