留言板

Layout is not re-rendered in development mode

Mikael Lammentausta,修改在15 年前。

Layout is not re-rendered in development mode

New Member 帖子: 18 加入日期: 08-6-8 最近的帖子
I'm altering the typesettings of a layout programmatically (altering portlet configuration), but the changes are not visible on the page UNLESS I reboot the tomcat server.

I am using Liferay 5.2.1 with Tomcat 6, and I have set "-Dexternal-properties=portal-developer.properties" to my tomcat environment, and they are loaded:

Loading file:/usr/local/liferay-devel/archive/liferay-portal-5.2.1/tomcat-6.0.18/webapps/ROOT/WEB-INF/classes/portal-developer.properties

The file is extracted from the jar and is unmodified.

Now I suspect that Liferay does a certain API call that takes care that Liferay "understands" that the layout has changed. Right?
What is this call, and how can I use it?
thumbnail
Alex Wallace,修改在15 年前。

RE: Layout is not re-rendered in development mode

Liferay Master 帖子: 640 加入日期: 07-11-5 最近的帖子
Hi...

Try : MultiVMPoolUtil.clear();

This clears cache accross a cluster, so make sure you are ok with that...

You can look at the portal code to see what exactly is ran after doing layout settings change...

Hope this helps...
Mikael Lammentausta,修改在15 年前。

RE: Layout is not re-rendered in development mode

New Member 帖子: 18 加入日期: 08-6-8 最近的帖子
Alex Wallace:
Hi...

Try : MultiVMPoolUtil.clear();

This clears cache accross a cluster, so make sure you are ok with that...

You can look at the portal code to see what exactly is ran after doing layout settings change...

Hope this helps...


Thanks, I'll try this.
I don't know where in the portal code to start looking for this. Could you please provide me the class or link to the right place in the API?