掲示板

A hook alternative to liferay-portlet-ext.xml

13年前 に Ramy Georgy によって更新されました。

A hook alternative to liferay-portlet-ext.xml

New Member 投稿: 10 参加年月日: 09/08/18 最新の投稿
As far as I know, the only way to override some of the classes configured in liferay-portlet.xml is to create a liferay-portlet-ext.xml file and make the changes there.

Examples of such classes:
<open-search-class>
<portlet-data-handler-class>
<indexer-class>

There are 2 downsides to this approach:
1. It's not very dynamic. The server must be restarted for the changes to take effect.
2. Any overriding classes must be either on the global classpath (probably in a jar file) or in the ROOT application classpath, which means deployment is not as convenient as that for plugins.

Suggestion:
Provide support for overriding some of these classes via the existing hook plugin mechanism. This would make it very easy to dynamically deploy and undeploy a different Portlet Data Handler for the Document library, for example, or a new Open Search implementation.
thumbnail
13年前 に Jorge Ferrer によって更新されました。

RE: A hook alternative to liferay-portlet-ext.xml

Liferay Legend 投稿: 2871 参加年月日: 06/08/31 最新の投稿
Hi Ramy,

That's a very good idea. I'm not sure how easy it would be to implement it but it's probably worth taking a look at it.

Can you create an LPS ticket in issues.liferay.com?

Also, do you have dev knowledge to give a try at implementing it?
13年前 に Ramy Georgy によって更新されました。

RE: A hook alternative to liferay-portlet-ext.xml

New Member 投稿: 10 参加年月日: 09/08/18 最新の投稿
Hi Jorge,

Per your suggestion, I created an LPS ticket for this:
http://issues.liferay.com/browse/LPS-15760

I can certainly take a shot at providing an initial implementation for it.

Thanks!
thumbnail
9年前 に Miguel Saraiva Sampaio によって更新されました。

RE: A hook alternative to liferay-portlet-ext.xml

New Member 投稿: 24 参加年月日: 11/01/15 最新の投稿
Any news on this implementation?

I would like to apply this to our Asset Publisher core portlets: http://sushilsaini.wordpress.com/2014/05/02/load-liferay-portlet-by-ajax/

It's related with perfomance tweaks and because this asset publisher pagination buttons are refreshing the entire page.

Anyhow if I can implement this change to liferay-portlet.xml or another way of reducing the scope of the refresh to only the portlet I would really appreciate your help!

Thanks a lot!
Regards
Miguel