| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.portlet.GenericPortlet
org.apache.myfaces.portlet.MyFacesGenericPortlet
public class MyFacesGenericPortlet
This portlet initializes MyFaces and converts portlet requests into JSF requests.
| Field Summary | |
|---|---|
| protected static java.lang.String | CURRENT_FACES_CONTEXT | 
| protected static java.lang.String | DEFAULT_VIEW | 
| protected static java.lang.String | DEFAULT_VIEW_SELECTOR | 
| protected  java.lang.String | defaultView | 
| protected  DefaultViewSelector | defaultViewSelector | 
| protected static java.lang.String | FACES_INIT_DONE | 
| protected  javax.faces.context.FacesContextFactory | facesContextFactory | 
| protected  javax.faces.lifecycle.Lifecycle | lifecycle | 
| protected  javax.portlet.PortletContext | portletContext | 
| protected static java.lang.String | REDEPLOY_FLAG | 
| protected static java.lang.String | SAVED_REQUEST_ATTRIBUTES | 
| static java.lang.String | VIEW_ID | 
| Constructor Summary | |
|---|---|
| MyFacesGenericPortlet()Creates a new instance of MyFacesPortlet | |
| Method Summary | |
|---|---|
|  void | destroy()Portlet lifecycle. | 
| protected  void | doEdit(javax.portlet.RenderRequest request,
       javax.portlet.RenderResponse response)Helper method to serve up the edit mode. | 
| protected  void | doHelp(javax.portlet.RenderRequest request,
       javax.portlet.RenderResponse response)Helper method to serve up the edit mode. | 
| protected  void | doView(javax.portlet.RenderRequest request,
       javax.portlet.RenderResponse response)Helper method to serve up the view mode. | 
| protected  javax.faces.context.FacesContext | facesContext(javax.portlet.PortletRequest request,
             javax.portlet.PortletResponse response) | 
| protected  void | facesRender(javax.portlet.RenderRequest request,
            javax.portlet.RenderResponse response)Render a JSF view. | 
| protected  java.lang.String | getLifecycleId() | 
| protected  void | handleExceptionFromLifecycle(java.lang.Throwable e) | 
|  void | init()Portlet lifecycle. | 
| protected  void | initMyFaces() | 
| protected  void | logException(java.lang.Throwable e,
             java.lang.String msgPrefix) | 
| protected  ReleaseableExternalContext | makeExternalContext(javax.portlet.PortletRequest request,
                    javax.portlet.PortletResponse response) | 
| protected  void | nonFacesRequest(javax.portlet.RenderRequest request,
                javax.portlet.RenderResponse response)This method follows JSF Spec section 2.1.1. | 
| protected  void | nonFacesRequest(javax.portlet.RenderRequest request,
                javax.portlet.RenderResponse response,
                java.lang.String view)This method follows JSF Spec section 2.1.1. | 
|  void | processAction(javax.portlet.ActionRequest request,
              javax.portlet.ActionResponse response)Called by the portlet container to allow the portlet to process an action request. | 
| protected  void | renderCleanup(javax.portlet.RenderRequest request) | 
| protected  void | restoreRequestAttributes(javax.portlet.RenderRequest request) | 
| protected  void | saveRequestAttributes(javax.portlet.ActionRequest request) | 
| protected  java.lang.String | selectDefaultView(javax.portlet.RenderRequest request,
                  javax.portlet.RenderResponse response) | 
| protected  boolean | sessionInvalidated(javax.portlet.PortletRequest request) | 
| protected  boolean | sessionTimedOut(javax.portlet.PortletRequest request) | 
| protected  void | setContentType(javax.portlet.RenderRequest request,
               javax.portlet.RenderResponse response) | 
| protected  void | setDefaultView() | 
| protected  void | setDefaultViewSelector() | 
| protected  void | setPortletRequestFlag(javax.portlet.PortletRequest request) | 
| 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 | 
|---|
public static final java.lang.String VIEW_ID
protected static final java.lang.String CURRENT_FACES_CONTEXT
protected static final java.lang.String DEFAULT_VIEW
protected static final java.lang.String DEFAULT_VIEW_SELECTOR
protected static final java.lang.String REDEPLOY_FLAG
protected static final java.lang.String FACES_INIT_DONE
protected static final java.lang.String SAVED_REQUEST_ATTRIBUTES
protected javax.portlet.PortletContext portletContext
protected javax.faces.context.FacesContextFactory facesContextFactory
protected javax.faces.lifecycle.Lifecycle lifecycle
protected java.lang.String defaultView
protected DefaultViewSelector defaultViewSelector
| Constructor Detail | 
|---|
public MyFacesGenericPortlet()
| Method Detail | 
|---|
public void destroy()
destroy in interface javax.portlet.Portletdestroy in class javax.portlet.GenericPortlet
public void init()
          throws javax.portlet.PortletException,
                 javax.portlet.UnavailableException
init in class javax.portlet.GenericPortletjavax.portlet.PortletException
javax.portlet.UnavailableException
protected void setDefaultView()
                       throws javax.portlet.UnavailableException
javax.portlet.UnavailableException
protected void setDefaultViewSelector()
                               throws javax.portlet.UnavailableException
javax.portlet.UnavailableException
protected void setContentType(javax.portlet.RenderRequest request,
                              javax.portlet.RenderResponse response)
protected java.lang.String getLifecycleId()
protected void initMyFaces()
public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
                   throws javax.portlet.PortletException,
                          java.io.IOException
processAction in interface javax.portlet.PortletprocessAction in class javax.portlet.GenericPortletjavax.portlet.PortletException
java.io.IOExceptionprotected void saveRequestAttributes(javax.portlet.ActionRequest request)
protected void restoreRequestAttributes(javax.portlet.RenderRequest request)
protected void handleExceptionFromLifecycle(java.lang.Throwable e)
                                     throws javax.portlet.PortletException,
                                            java.io.IOException
javax.portlet.PortletException
java.io.IOException
protected void doView(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      java.io.IOException
doView in class javax.portlet.GenericPortletjavax.portlet.PortletException
java.io.IOException
protected void doEdit(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      java.io.IOException
doEdit in class javax.portlet.GenericPortletjavax.portlet.PortletException
java.io.IOException
protected void doHelp(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      java.io.IOException
doHelp in class javax.portlet.GenericPortletjavax.portlet.PortletException
java.io.IOExceptionprotected void renderCleanup(javax.portlet.RenderRequest request)
protected void nonFacesRequest(javax.portlet.RenderRequest request,
                               javax.portlet.RenderResponse response)
                        throws javax.portlet.PortletException
request - The portlet render request.response - The portlet render response.
javax.portlet.PortletException
protected void nonFacesRequest(javax.portlet.RenderRequest request,
                               javax.portlet.RenderResponse response,
                               java.lang.String view)
                        throws javax.portlet.PortletException
request - The portlet render request.response - The portlet render response.view - The name of the view that needs to be rendered.
javax.portlet.PortletException
protected java.lang.String selectDefaultView(javax.portlet.RenderRequest request,
                                             javax.portlet.RenderResponse response)
                                      throws javax.portlet.PortletException
javax.portlet.PortletException
protected javax.faces.context.FacesContext facesContext(javax.portlet.PortletRequest request,
                                                        javax.portlet.PortletResponse response)
protected ReleaseableExternalContext makeExternalContext(javax.portlet.PortletRequest request,
                                                         javax.portlet.PortletResponse response)
protected boolean sessionTimedOut(javax.portlet.PortletRequest request)
protected boolean sessionInvalidated(javax.portlet.PortletRequest request)
protected void setPortletRequestFlag(javax.portlet.PortletRequest request)
protected void facesRender(javax.portlet.RenderRequest request,
                           javax.portlet.RenderResponse response)
                    throws javax.portlet.PortletException,
                           java.io.IOException
javax.portlet.PortletException
java.io.IOException
protected void logException(java.lang.Throwable e,
                            java.lang.String msgPrefix)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||