Liferay开发问题及解决 | 慢慢更新

主题开发过程对模板的修改后需要重启服务才能生效的问题:
velocity.engine.resource.manager.cache.enabled=false

 

-----------------------------


Portlet返回
问题:自己开发的portlet在有最大化的操作后,点击portlet右上方的返回按钮,窗口可以返回到normal状态,但是portlet中的内容还是返回操作前的内容。
解决:Liferay-portlet-ext中对portlet添加restore-current-view属性,值为false
    <portlet>
        <portlet-name>appmanager</portlet-name>
        <struts-path>communities</struts-path>
        <use-default-template>false</use-default-template>
        <restore-current-view>false</restore-current-view>
        <include>true</include>
    </portlet>

 

-----------------------------


问题:非Administrator角色用户执行admin Portlet的操作:
解决:在portal-ext.properties中修改omniadmin.users属性,加入能操作的用户id,具体说明如下:
#
# Omniadmin users can administer the portal's core functionality: gc,
# shutdown, etc. Omniadmin users must belong to the default company.
#
# Multiple portal instances might be deployed on one application server, and
# not all of the administrators should have access to this core
# functionality. Input the ids of users who are omniadmin users.
#
# Leave this field blank if users who belong to the right company and have
# the Administrator role are allowed to administer the portal's core
# functionality.
#
omniadmin.users=10127,10122

-----------------------------

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值