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.