| java.lang.Object com.icesoft.faces.webapp.http.portlet.MainPortlet
MainPortlet | public class MainPortlet implements Portlet(Code) | | The MainPortlet is the entry point for ICEfaces-based portlets. The goal is
we set up the environment as required and then dispatch the request to the
MainServlet and let the framework do all the normal processing. It's
basically only the initial page load that we care about. The rest of the
processing is handled between the ICEfaces JavaScript bridge and the
MainServlet via AJAX mechanisms. The main activities we do on the first page
load are:
- Get the initial view from the portlet config and set it as a request
attribute. We use the key "javax.servlet.include.request_uri" as portlets
are fragrments and so to the framework, they are treated much like includes.
- Get a request dispatcher for the view (typically an .iface resource) and
call the include() method of the dispatcher. By checking for the include
attribute on the request, the framework should process it correctly.
|
Method Summary | |
public void | destroy() | public void | init(PortletConfig portletConfig) | public void | processAction(ActionRequest actionRequest, ActionResponse actionResponse) | public void | render(RenderRequest renderRequest, RenderResponse renderResponse) |
destroy | public void destroy()(Code) | | |
init | public void init(PortletConfig portletConfig) throws PortletException(Code) | | |
processAction | public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, PortletException(Code) | | |
render | public void render(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException(Code) | | |
|
|