On Nov 19, 2009, at 7:36 AM, Michel DAVID wrote:

Hi all,

I have a Jetspeed 2 portal and in a portlet included in this portal I have
to read a parameter passed to the portal URL and share it as a
publicRenderParameter.
How can I do this ?

Example :
http://localhost:9080/jetspeed/portal/Test.psml?secretKey=xxxx-yyyy-zzzz

Then I have to add the parameter secretKey in a publicRenderParameter to be
rendered in different portlets.

From jetspeed.properties you can turn Jetspeed's way of accessing 'portal' (servlet) level parameters as you describe above:

#----------------------------------------------------------------------------------
# Until version 2.1, Jetspeed merged portal request parameters with portlet specific
# parameters, effectively allowing "shared" parameters.
# This is not compliant with the JSR-168 PLT.11, so by default this is now disabled.
#
# By setting merge.portal.parameters.with.portlet.parameters=true this feature can
# be "restored".
# In the situation of portal and portlet parameters with the same name, by default # the portlet parameters will be provided first in the values array, but this too # can be overridden by setting merge.portal.parameters.before.portlet.parameters=true
#
# Setting both these properties to true will deliver the "old" pre-2.1 behavior. # Note: for individual portlets, these global settings can be overridden by setting
#       these properties as metadata in jetspeed-portlet.xml
#----------------------------------------------------------------------------------
merge.portal.parameters.with.portlet.parameters=false
merge.portal.parameters.before.portlet.parameters=false

To use public render parameters from the 2.0 spec


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to