08-13-04 12:53 PM
I need to get a service in a JSF portlet.
Normally you would use the following method:
..
PortletContext context = getPortletConfig().getContext();
MyService myService=(MyService)context.getService(com.mycompnay.MyService.cl
XXX);
..
but in a JSF portlet you don't have the getPortletConfig() method.
I know that I can get hold of other things like the PortletRequest and so fo
rth using the following:
..
PortletRequest request=(PortletRequest)(getFacesContext
().getExternalContext
().getRequest());
..
but I can't find out how to get the portlet config or portlet context.
Anybody else know?
Justin Wood
[ Post a follow-up to this message ]
|