Foros de discusión
portletconfig in spring controller with annotations
KK rajput, modificado hace 12 años.
portletconfig in spring controller with annotations
Expert Mensajes: 266 Fecha de incorporación: 10/04/08 Mensajes recientes
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
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, modificado hace 12 años.
RE: portletconfig in spring controller with annotations
Regular Member Mensajes: 177 Fecha de incorporación: 23/02/10 Mensajes recientes
Hi,
Use,
Thanks,
Pranay
Use,
PortletConfig portletConfig = (PortletConfig) renderRequest.getAttribute(JavaConstants.JAVAX_PORTLET_CONFIG);
Thanks,
Pranay
a l, modificado hace 11 años.
RE: portletconfig in spring controller with annotations
New Member Mensajes: 3 Fecha de incorporación: 10/01/12 Mensajes recientes
You can also implement PortletConfigAware
private PortletConfig portletConfig;
@Override
public void setPortletConfig(PortletConfig portletConfig) {
this.portletConfig = portletConfig;
}
private PortletConfig portletConfig;
@Override
public void setPortletConfig(PortletConfig portletConfig) {
this.portletConfig = portletConfig;
}
Chandan Sharma, modificado hace 10 años.
RE: portletconfig in spring controller with annotations
Junior Member Mensajes: 63 Fecha de incorporación: 28/05/12 Mensajes recientes
Thanks Its working
majdi Achouri, modificado hace 3 años.
RE: portletconfig in spring controller with annotations
Junior Member Mensajes: 38 Fecha de incorporación: 21/11/19 Mensajes recientes
Which solution is working (i.e of Pranay or of a l ) the first or the second One ? Please specify ?