Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
KK rajput
portletconfig in spring controller with annotations
September 21, 2011 11:20 PM
Answer

KK rajput

Rank: Expert

Posts: 266

Join Date: April 10, 2008

Recent Posts

Hi ,
I am trying to build a spring portlet based on annotation controller in liferay 6. In my controller I my writing a code to get portletConfig object like this.
getPortletConfig() but getting compilation error. Can any one tell me what I am doing wrong??

Thanks
Pranay R Patadiya
RE: portletconfig in spring controller with annotations
September 22, 2011 12:29 AM
Answer

Pranay R Patadiya

Rank: Regular Member

Posts: 181

Join Date: February 22, 2010

Recent Posts

Hi,
Use,
1PortletConfig portletConfig = (PortletConfig) renderRequest.getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);


Thanks,
Pranay
a l
RE: portletconfig in spring controller with annotations
October 24, 2012 2:26 PM
Answer

a l

Rank: New Member

Posts: 4

Join Date: January 10, 2012

Recent Posts

You can also implement PortletConfigAware


private PortletConfig portletConfig;


@Override
public void setPortletConfig(PortletConfig portletConfig) {
this.portletConfig = portletConfig;
}
Chandan Sharma
RE: portletconfig in spring controller with annotations
October 20, 2013 11:49 PM
Answer

Chandan Sharma

Rank: Junior Member

Posts: 62

Join Date: May 27, 2012

Recent Posts

Thanks Its working