Problem with Enterprise Push Server and Liferay
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Problem with Enterprise Push Server and Liferay  XML
Forum Index -> Portals & Portlets
Author Message
otomar

Joined: 22/09/2009 00:00:00
Messages: 3
Offline


I have a problem with using EPS with Liferay.

Wiki says that I need to add the following lines to my setRenderManager method:
Code:
 ServletContext servletContext =
     (ServletContext)FacesContext.getCurrentInstance()
                                 .getExternalContext().getContext();
   renderManager.setBroadcastRenderer(new MessagingBroadcastRenderer(servletContext));
 


But then I get the following exception:
java.lang.ClassCastException: com.liferay.portlet.PortletContextImpl cannot be cast to javax.servlet.ServletContext

Is there any way I can get ServletContext when my application is a portlet?
otomar

Joined: 22/09/2009 00:00:00
Messages: 3
Offline


Ok, I can get the servletContext by using:
Code:
 RenderManager.getInstance().getServletContext()
 

But is this the right servletContext?
I keep getting:
Code:
 08:51:41||WARN |render.MessagingBroadcastRenderer$RenderMessageHandler|Could not find name renderer ...
 


In my server log
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team