voyent
Should I use or not LiferayAssociatedPageViews?  XML
Forum Index -> Portals & Portlets
Author Message
tmoreira2020


Joined: 25/Sep/2009 00:00:00
Messages: 16
Offline


Hi there,

I was checking my logs in Liferay and saw an info like this

Code:
INFO  [AssociatedPageViews:82] using com.icesoft.faces.webapp.http.portlet.page.NoOpAssociatedPageViews


So I decided to search for a Liferay implementation and found LiferayAssociatedPageViews. Who is using? Is mandatory use it?

TIA
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


Depending on the behaviour of your portlet application, it may be useful to you. Normally, when a portal page is loaded that contains more than one portlet, a corresponding View is created on the server for each portlet. When the portlets get rendered to the client, they are tracked by client-side code so that when the page unloads, all of the Views can be disposed on the server.

In some circumstances (testing scenarios, impatient users, etc), the page may not be allowed to fully render on the client and this can lead to Views being created on the server but not registed on the client for disposal. While the Views will get disposed when the session expires, you may want to free up the resources sooner to avoid memory issues. This is what the AssociatedPageViews is designed to help with. It attempts to associated all the portlets that are on the same page so that if one View gets disposed then all associated Views are also disposed whether they got rendered or no.

You can build and deploy the library yourself or contact our support team for more details.

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
tmoreira2020


Joined: 25/Sep/2009 00:00:00
Messages: 16
Offline



Alright thank you!
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team