voyent
can't get FacesContext instance in portlet class  XML
Forum Index -> Portals & Portlets
Author Message
tejash.patel

Joined: 27/Jun/2007 00:00:00
Messages: 3
Offline


Hi,

I have developed one Icemainportlet class which extends MainPortlet class of Ice Faces portlet.

I can't get FacesContext instance in render method of portlet class.

anyone can help me how i get FacesContext in portlet class.


regards,
Tejash Patel
Cignex Inc
india


yurbar2

Joined: 05/Jun/2007 00:00:00
Messages: 16
Offline


FacesContext.getCurrentInstance();
tejash.patel

Joined: 27/Jun/2007 00:00:00
Messages: 3
Offline


yurbar2 wrote:
FacesContext.getCurrentInstance(); 



Hi,

it returns null.
is there any other way to get FacesContext using portletcontext,portletrequest,portletresponse.?

regards,
Tejash Patel
cignex Inc.
India.

yurbar2

Joined: 05/Jun/2007 00:00:00
Messages: 16
Offline


I think it must always returns not null value if it works as ICEFaces portlet or you did something wrong in your JSF settings.
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team