Foren
pass parameter to portlet via call in theme
Thomas Hutterer, geändert vor 14 Jahren.
pass parameter to portlet via call in theme
New Member Beiträge: 5 Beitrittsdatum: 21.07.09 Neueste Beiträge
Hello,
I want to change the login portlet to only show the OpenID dialog. But only if in my velocity template a parameter is set ($velocityPortletPreferences.setValue())
I have a hook to my own jsp files for the login dialog. In this files I want to evaluate the values of the parameter.
I have following code in the template:
In my jsp I have following:
Unfortunately showOpenID is empty.
Where is the problem?
Is there another possibility to pass a parameter from a velocity file into my jsp?
Regards,
Thomas
I want to change the login portlet to only show the OpenID dialog. But only if in my velocity template a parameter is set ($velocityPortletPreferences.setValue())
I have a hook to my own jsp files for the login dialog. In this files I want to evaluate the values of the parameter.
I have following code in the template:
$velocityPortletPreferences.setValue("showOpenID", "true")
$theme.runtime("58", "", $velocityPortletPreferences.toString())
$velocityPortletPreferences.reset()
In my jsp I have following:
PortletPreferences preferences = renderRequest.getPreferences();
String portletResource = ParamUtil.getString(request, "portletResource");
if (Validator.isNotNull(portletResource)) {
preferences = PortletPreferencesFactoryUtil.getPortletSetup(request, portletResource);
}
String showOpenID = preferences.getValue("showOpenID", StringPool.BLANK);
Unfortunately showOpenID is empty.
Where is the problem?
Is there another possibility to pass a parameter from a velocity file into my jsp?
Regards,
Thomas
Pramono Tunggul, geändert vor 12 Jahren.
RE: pass parameter to portlet via call in theme
New Member Beitrag: 1 Beitrittsdatum: 21.07.11 Neueste Beiträge
No answer?
KK rajput, geändert vor 12 Jahren.
RE: pass parameter to portlet via call in theme
Expert Beiträge: 266 Beitrittsdatum: 10.04.08 Neueste Beiträge
in place of $theme can you try $taglibLiferay