Foros de discusión
Template Context Contributor of type THEME in Liferay 7
Juan José Fuentes, modificado hace 6 años.
Template Context Contributor of type THEME in Liferay 7
New Member Mensajes: 7 Fecha de incorporación: 28/01/16 Mensajes recientes
I'm testing Template Context Contributors. I've created one contributor only for themes just like this:
It is executing, but an (abnormal in my opinion) number of times: more than 20 times per page reload. Is this the correct behavior, or should be executing just one time, as I expected?
@Component(
immediate = true,
property = {"type=" + TemplateContextContributor.TYPE_THEME},
service = TemplateContextContributor.class
)
public class ExtraTestTemplateContextContributor implements TemplateContextContributor {
@Override
public void prepare(Map<string, object> contextObjects, HttpServletRequest request) {
...
...
...
}
}
</string,>
It is executing, but an (abnormal in my opinion) number of times: more than 20 times per page reload. Is this the correct behavior, or should be executing just one time, as I expected?