Get a service in a JSF portlet
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Get a service in a JSF portlet




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Get a service in a JSF portlet  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:20 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register