フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Sarav Veda
portlet preference update in Velocity template ???
2011/07/04 2:49
答え

Sarav Veda

ランク: New Member

投稿: 10

参加年月日: 2011/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.
Archi Madhu
RE: portlet preference update in Velocity template ???
2011/07/04 3:19
答え

Archi Madhu

ランク: Regular Member

投稿: 238

参加年月日: 2008/03/24

最近の投稿

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