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

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

 

 

你可能感兴趣的:(struts,cache,velocity,ext,Access)