1 5 6 package org.exoplatform.portlet.faces.context; 7 8 import javax.faces.FacesException; 9 import javax.faces.context.FacesContext; 10 import javax.faces.context.FacesContextFactory; 11 import javax.faces.lifecycle.Lifecycle; 12 19 public class FacesPortletContextFactoryImpl extends FacesContextFactory { 20 21 public FacesContext getFacesContext( Object config, Object request, Object response, Lifecycle lifecycle ) throws FacesException { 22 try { 23 return new FacesPortletContextImpl(config, request, response ); 24 } catch (Exception ex) { 25 ex.printStackTrace() ; 26 throw new FacesException("Cannot instantiate FacesContext ", ex) ; 27 } 28 } 29 } 30 | Popular Tags |