总结自: 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

最新文章

  1. python3使用pyinstaller打包apscheduler出的错
  2. Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the co
  3. language level in Intellij IDEA
  4. OpenCV从入门到放弃系列之——core模块.核心功能(一)
  5. 《On Lisp》第四章第三节图4.6中的rmapcar函数中展现的apply陷阱
  6. tabs左右滚动
  7. Linux 编写c++程序之openssl
  8. dalvik虚拟内存管理之三——调试信息
  9. 苹果操作系统Mac OS X
  10. 让aspx页面也可以通过url路由进行访问
  11. [CSS]cursor鼠标样式
  12. xxx is not in the sudoers file. This incident will be reported的解决方法
  13. CSS 设计彻底研究(三)深入理解盒子模型
  14. Very Deep Convolutional Networks for Large-Scale Image Recognition
  15. 构造activeMQ
  16. wex5 设置文本居中或图片居中
  17. SVN系列操作(一)
  18. 字体图标-把SVG图标转换成所需要的字体图标
  19. 【BZOJ5292】[BJOI2018]治疗之雨(高斯消元)
  20. 1.开始学习ASP.NET MVC

热门文章

  1. Java-Shiro:目录
  2. 《DSP using MATLAB》Problem 8.31
  3. iotop实时监控磁盘io
  4. 图解nginx配置文件nginx.conf
  5. light oj 1105 规律
  6. python 日记 day1
  7. Spring AOP(一)--基本概念
  8. [Day2] Nginx静态文件
  9. redis中重启和停止服务
  10. 利用TensorFlow识别手写的数字---基于Softmax回归