| de.danet.an.util.jsf.MyFacesAdaptedPortlet
MyFacesAdaptedPortlet | public class MyFacesAdaptedPortlet extends GenericPortlet (Code) | | This portlet initializes MyFaces and converts portlet requests into
JSF requests.
author: Stan Silvert (latest modification by $Author: mlipp $) |
Inner Class :public class ActionRequestWrapper implements ActionRequest | |
Inner Class :public class MyPortletExternalContextImpl extends PortletExternalContextImpl | |
Method Summary | |
public void | destroy() Portlet lifecycle. | protected void | doEdit(RenderRequest request, RenderResponse response) Helper method to serve up the edit mode. | protected void | doHelp(RenderRequest request, RenderResponse response) Helper method to serve up the edit mode. | protected void | doView(RenderRequest request, RenderResponse response) Helper method to serve up the view mode. | protected FacesContext | facesContext(PortletRequest request, PortletResponse response) | protected void | facesRender(RenderRequest request, RenderResponse response) Render a JSF view. | protected Locale | getLocale(PortletRequest request) | protected void | handleExceptionFromLifecycle(Throwable e) | public void | init() Portlet lifecycle. | protected void | initMyFaces() | protected void | logException(Throwable e, String msgPrefix) | protected ReleaseableExternalContext | makeExternalContext(PortletRequest request, PortletResponse response) | protected void | nonFacesRequest(RenderRequest request, RenderResponse response) This method follows JSF Spec section 2.1.1. | protected void | nonFacesRequest(RenderRequest request, RenderResponse response, String view) This method follows JSF Spec section 2.1.1. | public void | processAction(ActionRequest request, ActionResponse response) Called by the portlet container to allow the portlet to process an
action request. | protected String | selectDefaultView(RenderRequest request, RenderResponse response) | protected boolean | sessionTimedOut(PortletRequest request) | protected void | setContentType(RenderRequest request, RenderResponse response) | protected void | setPortletRequestFlag(PortletRequest request) |
CURRENT_FACES_CONTEXT | final public static String CURRENT_FACES_CONTEXT(Code) | | |
FACES_INIT_DONE | final protected static String FACES_INIT_DONE(Code) | | |
NAMESPACE_PREFIX | final public static String NAMESPACE_PREFIX(Code) | | |
PARAM_EDIT_PAGE | final protected static String PARAM_EDIT_PAGE(Code) | | Name of portlet preference for Edit page.
|
PARAM_HELP_PAGE | final protected static String PARAM_HELP_PAGE(Code) | | Name of portlet preference for Edit page
|
PARAM_VIEW_PAGE | final protected static String PARAM_VIEW_PAGE(Code) | | Name of portlet preference for View page
|
REQUEST_ATTRIBUTES | final public static String REQUEST_ATTRIBUTES(Code) | | |
facesContextFactory | protected FacesContextFactory facesContextFactory(Code) | | |
lifecycle | protected Lifecycle lifecycle(Code) | | |
portletContext | protected PortletContext portletContext(Code) | | |
MyFacesAdaptedPortlet | public MyFacesAdaptedPortlet()(Code) | | Creates a new instance of MyFacesPortlet
|
destroy | public void destroy()(Code) | | Portlet lifecycle.
|
doEdit | protected void doEdit(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code) | | Helper method to serve up the edit mode. Can be overridden to add
the edit mode concept to a JSF application.
|
doHelp | protected void doHelp(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code) | | Helper method to serve up the edit mode. Can be overridden to add
the help mode concept to a JSF application.
|
doView | protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code) | | Helper method to serve up the view mode.
|
facesContext | protected FacesContext facesContext(PortletRequest request, PortletResponse response)(Code) | | |
facesRender | protected void facesRender(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException(Code) | | Render a JSF view.
|
getLocale | protected Locale getLocale(PortletRequest request)(Code) | | |
init | public void init() throws PortletException, UnavailableException(Code) | | Portlet lifecycle.
|
initMyFaces | protected void initMyFaces()(Code) | | |
makeExternalContext | protected ReleaseableExternalContext makeExternalContext(PortletRequest request, PortletResponse response)(Code) | | |
nonFacesRequest | protected void nonFacesRequest(RenderRequest request, RenderResponse response) throws PortletException(Code) | | 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. Parameters: response - The portlet render response. |
nonFacesRequest | protected void nonFacesRequest(RenderRequest request, RenderResponse response, String view) throws PortletException(Code) | | 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. Parameters: response - The portlet render response. Parameters: view - The name of the view that needs to be rendered. |
processAction | public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException(Code) | | Called by the portlet container to allow the portlet to process an
action request.
|
selectDefaultView | protected String selectDefaultView(RenderRequest request, RenderResponse response) throws PortletException(Code) | | |
sessionTimedOut | protected boolean sessionTimedOut(PortletRequest request)(Code) | | |
setContentType | protected void setContentType(RenderRequest request, RenderResponse response)(Code) | | |
setPortletRequestFlag | protected void setPortletRequestFlag(PortletRequest request)(Code) | | |
|
|