Thursday, 25 July 2013

How to get Recent Journal Article in Action Class Liferay6.1 Hook

The Recent Article is stored in PortletSession. And it's a Object of 

java.util.Stack having 20 Objects of JournalArticle.

The Snippet is as below.

PortletSession portletSession = portletRequest.getPortletSession();

        Stack<JournalArticle> recentArticles =
            (Stack<JournalArticle>)portletSession.getAttribute(
                WebKeys.JOURNAL_RECENT_ARTICLES);

No comments:

Post a Comment

Infinidb _CpNoTf_ problem

infinidb table with a varchar column insert string as a '_CpNoTf_' while using Cpimport. The Problem is occured if inserted string ...