Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
KK rajput
portletconfig in spring controller with annotations
21. September 2011 23:20
Antwort

KK rajput

Rang: Expert

Nachrichten: 266

Eintrittsdatum: 10. April 2008

Neue Beiträge

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
22. September 2011 00:29
Antwort

Pranay R Patadiya

Rang: Regular Member

Nachrichten: 181

Eintrittsdatum: 22. Februar 2010

Neue Beiträge

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


Thanks,
Pranay
a l
RE: portletconfig in spring controller with annotations
24. Oktober 2012 14:26
Antwort

a l

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 10. Januar 2012

Neue Beiträge

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
20. Oktober 2013 23:49
Antwort

Chandan Sharma

Rang: New Member

Nachrichten: 12

Eintrittsdatum: 27. Mai 2012

Neue Beiträge

Thanks Its working