Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Martin Bunen
Overriding portlet.properties in portal-ext.properties
9 de febrero de 2012 8:56
Respuesta

Martin Bunen

Ranking: New Member

Mensajes: 3

Fecha de incorporación: 9 de febrero de 2012

Mensajes recientes

I'm using web form portlet and need to preserve the validation scripts and messages. To do this I have to edit portlet.properties and set validation.script.enabled=true
Is there a way to override the default (false) setting in the portal-ext.properties file? Other than creating an ext plugin?
Jan Gregor
RE: Overriding portlet.properties in portal-ext.properties
9 de febrero de 2012 12:56
Respuesta

Jan Gregor

Ranking: Regular Member

Mensajes: 224

Fecha de incorporación: 20 de octubre de 2010

Mensajes recientes

Hi there,

So what are you trying to do is override a property in portal.properties right ? If the property is modifable on the run, you can do it in hook, otherwise you need to place your ext file whenever on your classpath, so liferay can read it on startup.

Regards,
Jan.
Martin Bunen
RE: Overriding portlet.properties in portal-ext.properties
9 de febrero de 2012 14:51
Respuesta

Martin Bunen

Ranking: New Member

Mensajes: 3

Fecha de incorporación: 9 de febrero de 2012

Mensajes recientes

It was portlet.properties. The reason I was asking if portal-ext.properties can override portlet.properties is because it allows to specify whitelisting of portlets, such as: portlet.add.default.resource.check.whitelist=58,... By the same idea I was wondering if something was possible at individual portlet level, but you already answered my question. Thanks!