org.apache.myfaces.portlet
Class MyFacesGenericPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by org.apache.myfaces.portlet.MyFacesGenericPortlet
All Implemented Interfaces:
javax.portlet.Portlet, javax.portlet.PortletConfig

Deprecated. Replaced by jsr 301 portlet bridge.

public class MyFacesGenericPortlet
extends javax.portlet.GenericPortlet

This portlet initializes MyFaces and converts portlet requests into JSF requests.

Version:
$Revision: 827879 $ $Date: 2009-10-20 22:10:03 -0500 (Tue, 20 Oct 2009) $
Author:
Stan Silvert (latest modification by $Author: lu4242 $)

Field Summary
protected static String CURRENT_FACES_CONTEXT
          Deprecated.  
protected static String DEFAULT_VIEW
          Deprecated.  
protected static String DEFAULT_VIEW_SELECTOR
          Deprecated.  
protected  String defaultView
          Deprecated.  
protected  DefaultViewSelector defaultViewSelector
          Deprecated.  
protected static String FACES_INIT_DONE
          Deprecated.  
protected  FacesContextFactory facesContextFactory
          Deprecated.  
protected  Lifecycle lifecycle
          Deprecated.  
protected  javax.portlet.PortletContext portletContext
          Deprecated.  
static String VIEW_ID
          Deprecated.  
 
Constructor Summary
MyFacesGenericPortlet()
          Deprecated. Creates a new instance of MyFacesPortlet
 
Method Summary
 void destroy()
          Deprecated. Portlet lifecycle.
protected  void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Deprecated. Helper method to serve up the edit mode.
protected  void doHelp(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Deprecated. Helper method to serve up the edit mode.
protected  void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Deprecated. Helper method to serve up the view mode.
protected  FacesContext facesContext(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response)
          Deprecated.  
protected  void facesRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Deprecated. Render a JSF view.
protected  String getLifecycleId()
          Deprecated.  
protected  void handleExceptionFromLifecycle(Throwable e)
          Deprecated.  
 void init()
          Deprecated. Portlet lifecycle.
protected  void initMyFaces()
          Deprecated.  
protected  void logException(Throwable e, String msgPrefix)
          Deprecated.  
protected  ReleaseableExternalContext makeExternalContext(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response)
          Deprecated.  
protected  void nonFacesRequest(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Deprecated. This method follows JSF Spec section 2.1.1.
protected  void nonFacesRequest(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, String view)
          Deprecated. This method follows JSF Spec section 2.1.1.
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
          Deprecated. Called by the portlet container to allow the portlet to process an action request.
protected  String selectDefaultView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Deprecated.  
protected  boolean sessionTimedOut(javax.portlet.PortletRequest request)
          Deprecated.  
protected  void setContentType(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Deprecated.  
protected  void setDefaultView()
          Deprecated.  
protected  void setDefaultViewSelector()
          Deprecated.  
protected  void setPortletRequestFlag(javax.portlet.PortletRequest request)
          Deprecated.  
 
Methods inherited from class javax.portlet.GenericPortlet
doDispatch, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW_ID

public static final String VIEW_ID
Deprecated. 

CURRENT_FACES_CONTEXT

protected static final String CURRENT_FACES_CONTEXT
Deprecated. 

DEFAULT_VIEW

protected static final String DEFAULT_VIEW
Deprecated. 
See Also:
Constant Field Values

DEFAULT_VIEW_SELECTOR

protected static final String DEFAULT_VIEW_SELECTOR
Deprecated. 
See Also:
Constant Field Values

FACES_INIT_DONE

protected static final String FACES_INIT_DONE
Deprecated. 

portletContext

protected javax.portlet.PortletContext portletContext
Deprecated. 

facesContextFactory

protected FacesContextFactory facesContextFactory
Deprecated. 

lifecycle

protected Lifecycle lifecycle
Deprecated. 

defaultView

protected String defaultView
Deprecated. 

defaultViewSelector

protected DefaultViewSelector defaultViewSelector
Deprecated. 
Constructor Detail

MyFacesGenericPortlet

public MyFacesGenericPortlet()
Deprecated. 
Creates a new instance of MyFacesPortlet

Method Detail

destroy

public void destroy()
Deprecated. 
Portlet lifecycle.

Specified by:
destroy in interface javax.portlet.Portlet
Overrides:
destroy in class javax.portlet.GenericPortlet

init

public void init()
          throws javax.portlet.PortletException,
                 javax.portlet.UnavailableException
Deprecated. 
Portlet lifecycle.

Overrides:
init in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
javax.portlet.UnavailableException

setDefaultView

protected void setDefaultView()
                       throws javax.portlet.UnavailableException
Deprecated. 
Throws:
javax.portlet.UnavailableException

setDefaultViewSelector

protected void setDefaultViewSelector()
                               throws javax.portlet.UnavailableException
Deprecated. 
Throws:
javax.portlet.UnavailableException

setContentType

protected void setContentType(javax.portlet.RenderRequest request,
                              javax.portlet.RenderResponse response)
Deprecated. 

getLifecycleId

protected String getLifecycleId()
Deprecated. 

initMyFaces

protected void initMyFaces()
Deprecated. 

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
                   throws javax.portlet.PortletException,
                          IOException
Deprecated. 
Called by the portlet container to allow the portlet to process an action request.

Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
IOException

handleExceptionFromLifecycle

protected void handleExceptionFromLifecycle(Throwable e)
                                     throws javax.portlet.PortletException,
                                            IOException
Deprecated. 
Throws:
javax.portlet.PortletException
IOException

doView

protected void doView(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      IOException
Deprecated. 
Helper method to serve up the view mode.

Overrides:
doView in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
IOException

doEdit

protected void doEdit(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      IOException
Deprecated. 
Helper method to serve up the edit mode. Can be overridden to add the edit mode concept to a JSF application.

Overrides:
doEdit in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
IOException

doHelp

protected void doHelp(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      IOException
Deprecated. 
Helper method to serve up the edit mode. Can be overridden to add the help mode concept to a JSF application.

Overrides:
doHelp in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
IOException

nonFacesRequest

protected void nonFacesRequest(javax.portlet.RenderRequest request,
                               javax.portlet.RenderResponse response)
                        throws javax.portlet.PortletException
Deprecated. 
This method follows JSF Spec section 2.1.1. It renders the default view from a non-faces request.

Parameters:
request - The portlet render request.
response - The portlet render response.
Throws:
javax.portlet.PortletException

nonFacesRequest

protected void nonFacesRequest(javax.portlet.RenderRequest request,
                               javax.portlet.RenderResponse response,
                               String view)
                        throws javax.portlet.PortletException
Deprecated. 
This method follows JSF Spec section 2.1.1. It renders a view from a non-faces request. This is useful for a default view as well as for views that need to be rendered from the portlet's edit and help buttons.

Parameters:
request - The portlet render request.
response - The portlet render response.
view - The name of the view that needs to be rendered.
Throws:
javax.portlet.PortletException

selectDefaultView

protected String selectDefaultView(javax.portlet.RenderRequest request,
                                   javax.portlet.RenderResponse response)
                            throws javax.portlet.PortletException
Deprecated. 
Throws:
javax.portlet.PortletException

facesContext

protected FacesContext facesContext(javax.portlet.PortletRequest request,
                                    javax.portlet.PortletResponse response)
Deprecated. 

makeExternalContext

protected ReleaseableExternalContext makeExternalContext(javax.portlet.PortletRequest request,
                                                         javax.portlet.PortletResponse response)
Deprecated. 

sessionTimedOut

protected boolean sessionTimedOut(javax.portlet.PortletRequest request)
Deprecated. 

setPortletRequestFlag

protected void setPortletRequestFlag(javax.portlet.PortletRequest request)
Deprecated. 

facesRender

protected void facesRender(javax.portlet.RenderRequest request,
                           javax.portlet.RenderResponse response)
                    throws javax.portlet.PortletException,
                           IOException
Deprecated. 
Render a JSF view.

Throws:
javax.portlet.PortletException
IOException

logException

protected void logException(Throwable e,
                            String msgPrefix)
Deprecated. 


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.