|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 String |
CURRENT_FACES_CONTEXT
|
protected static String |
DEFAULT_VIEW
|
protected static String |
DEFAULT_VIEW_SELECTOR
|
protected String |
defaultView
|
protected DefaultViewSelector |
defaultViewSelector
|
protected static String |
FACES_INIT_DONE
|
protected FacesContextFactory |
facesContextFactory
|
protected Lifecycle |
lifecycle
|
protected javax.portlet.PortletContext |
portletContext
|
protected static String |
REDEPLOY_FLAG
|
protected static String |
SAVED_REQUEST_ATTRIBUTES
|
static 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 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 String |
getLifecycleId()
|
protected void |
handleExceptionFromLifecycle(Throwable e)
|
void |
init()
Portlet lifecycle. |
protected void |
initMyFaces()
|
protected void |
logException(Throwable e,
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,
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 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 String VIEW_ID
protected static final String CURRENT_FACES_CONTEXT
protected static final String DEFAULT_VIEW
protected static final String DEFAULT_VIEW_SELECTOR
protected static final String REDEPLOY_FLAG
protected static final String FACES_INIT_DONE
protected static final String SAVED_REQUEST_ATTRIBUTES
protected javax.portlet.PortletContext portletContext
protected FacesContextFactory facesContextFactory
protected Lifecycle lifecycle
protected String defaultView
protected DefaultViewSelector defaultViewSelector
Constructor Detail |
---|
public MyFacesGenericPortlet()
Method Detail |
---|
public void destroy()
destroy
in interface javax.portlet.Portlet
destroy
in class javax.portlet.GenericPortlet
public void init() throws javax.portlet.PortletException, javax.portlet.UnavailableException
init
in class javax.portlet.GenericPortlet
javax.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 String getLifecycleId()
protected void initMyFaces()
public void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, IOException
processAction
in interface javax.portlet.Portlet
processAction
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
protected void saveRequestAttributes(javax.portlet.ActionRequest request)
protected void restoreRequestAttributes(javax.portlet.RenderRequest request)
protected void handleExceptionFromLifecycle(Throwable e) throws javax.portlet.PortletException, IOException
javax.portlet.PortletException
IOException
protected void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doView
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
protected void doEdit(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doEdit
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
protected void doHelp(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doHelp
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
protected 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, 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 String selectDefaultView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException
javax.portlet.PortletException
protected 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, IOException
javax.portlet.PortletException
IOException
protected void logException(Throwable e, String msgPrefix)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |