掲示板

portlet preference update in Velocity template ???

12年前 に Sarav Veda によって更新されました。

portlet preference update in Velocity template ???

New Member 投稿: 10 参加年月日: 11/03/29 最新の投稿
Hi,

Is that possible to update the portlet preference value in the wcm template (velocity template),
In my case, i have a web content which has list of web content title with the article id, On click of the web content i need to update the content of the same portlet with the selected web content (article), I believe in order to do the same I need to update the portlet preference table.

Thanks.
thumbnail
12年前 に Archi Madhu によって更新されました。

RE: portlet preference update in Velocity template ???

Regular Member 投稿: 237 参加年月日: 08/03/25 最新の投稿
Hi Sarav,

For question -
Is that possible to update the portlet preference value in the wcm template

I don't think it is possible.

Refer - CMS templates link

In wiki page it's written -

The processing of a template is handled in such a way that it is not dependent on access to a real HttpRequest of any kind. Why? Because it's done WITHIN the service call. We do not allow our service layer objects to have an HttpRequest or HttpResponse of any kind as parameters. Thus, we can't add any of those NON-serializable objects like HttpServletRequest, ThemeDisplay, PortletDisplay, PortletPreferences, etc...


HTH!
Archi