Liferay 7:portlet name
2024-09-02 08:11:51
总结自: https://web.liferay.com/zh/web/user.26526/blog/-/blogs/proper-portlet-name-for-your-portlet-components-
在开发Liferay 7 module的过程中,有时候会需要用到portlet name。
比如你写Action Command Portlet的时候,需要指定javax.portlet.name。
你可能会想,Liferay的Portlet命名规则是什么呢?我怎么填这个属性才会对呢?
在该portlet没有显式写明javax.portlet.name的时候,一般情况下是包名加portlet的class名,同时把","都换成"_"。
但如果有的地方规则不是这样的呢,就会很麻烦,所以在写portlet的时候,最好在properties中显式写出javax.portlet.name。
如果是用到Lifeay原生的portlet, 则直接使用人家写好的xxxPortletKey.xxx
最新文章
- python3使用pyinstaller打包apscheduler出的错
- Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the co
- language level in Intellij IDEA
- OpenCV从入门到放弃系列之——core模块.核心功能(一)
- 《On Lisp》第四章第三节图4.6中的rmapcar函数中展现的apply陷阱
- tabs左右滚动
- Linux 编写c++程序之openssl
- dalvik虚拟内存管理之三——调试信息
- 苹果操作系统Mac OS X
- 让aspx页面也可以通过url路由进行访问
- [CSS]cursor鼠标样式
- xxx is not in the sudoers file. This incident will be reported的解决方法
- CSS 设计彻底研究(三)深入理解盒子模型
- Very Deep Convolutional Networks for Large-Scale Image Recognition
- 构造activeMQ
- wex5 设置文本居中或图片居中
- SVN系列操作(一)
- 字体图标-把SVG图标转换成所需要的字体图标
- 【BZOJ5292】[BJOI2018]治疗之雨(高斯消元)
- 1.开始学习ASP.NET MVC