Sorry, I misunderstood the documentation, org.jahia.portletapi.CacheExpirationDelay is a request attribute and can be set to a specific webapp.....

forget previous question.


Lorenzo Patocchi ha scritto:

Thanks a lot Serge, very useful !

Is there a way to disable caching of a specific webapp output ? Reading the doc "Jahia CMS and Portal Server" it tell to use url /cache/... hints, but does not affect the webapp cache and the variable org.jahia.portletapi.CacheExpirationDelay affect all webapps.

Thank You again,

Lorenzo

Serge Huber ha scritto:

Lorenzo Patocchi wrote:

Hello,
i'm starting the development of a portlet and have few questions about interaction with jahia: - how to pass the current navigating language of jahia (without using the session to store vars and without putting jahia specific classes in the webapp of the portlet)



The current language is available in request.getLocale();

- hot to pass specific arguments to a same webapp depending on the page is called (i.e. in a page i would like the portlet to start with a face, and on another page to show the same data but on different way). I would like to avoid to instantiate the same portlet multiple time creating multiple webapps for each face it may start.



There is a trick here. Put whatever arguments you want in the request attributes. BUT this must be done BEFORE any access to the container list that contains the web app. The issue here is that upon loading the container list, Jahia dispatches to the web application. So you must put before this loading part the attributes.

Regards,
 Serge Huber.





--
Lorenzo Patocchi
Dipl. Ing. STS/ETS/HTL
[EMAIL PROTECTED] - www.cryms.com
Tel: +41 91 60 55266
Cel: +41 79 375 0891
Fax: +41 91 223 9797

Cryms sagl
Via Cantonale 34a
6928 Manno - Lugano
Switzerland

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to