开发者

Make liferay portlet non instanceable

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜