Package org.zkoss.zk.ui.http
Class DHtmlLayoutPortlet
java.lang.Object
javax.portlet.GenericPortlet
org.zkoss.zk.ui.http.DHtmlLayoutPortlet
- All Implemented Interfaces:
javax.portlet.EventPortlet,javax.portlet.HeaderPortlet,javax.portlet.Portlet,javax.portlet.PortletConfig,javax.portlet.ResourceServingPortlet
public class DHtmlLayoutPortlet
extends javax.portlet.GenericPortlet
The portlet used to process the request for a ZUML page.
Notes:
- The portlet looks for the path of the ZUML page from the following locations:
- From the request parameter called zk_page.
- From the request attribute called zk_page.
- From the portlet preference called zk_page.
- If not found, it looks for the portlet from the following locations:
- From the request parameter called zk_richlet.
- From the request attribute called zk_richlet.
- From the portlet preference called zk_richlet.
- It is based
DHtmlLayoutServlet, so you have to declareDHtmlLayoutServleteven if you want every ZUML pages being processed by this portlet.
To patch the rendering result of a ZK portlet, you can implement
PageRenderPatch (and specified it in Attributes.PORTLET_RENDER_PATCH_CLASS).
- Author:
- tomyeh
-
Field Summary
Fields inherited from class javax.portlet.GenericPortlet
AUTOMATIC_RESOURCE_DISPATCH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) protected StringgetNamespace(javax.portlet.RenderResponse response) Returns the namespace for resource request parametersvoidinit()protected booleanprocess(Session sess, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, String path, boolean bRichlet) Process a portlet request.voidserveResource(javax.portlet.ResourceRequest request, javax.portlet.ResourceResponse response) Process AJAX request here instead of DHtmlUpdateServlet if the Portal Container support JSR 286.Methods inherited from class javax.portlet.GenericPortlet
destroy, dispatchAnnotatedActionMethod, dispatchAnnotatedEventMethod, dispatchAnnotatedRenderMethod, doDispatch, doEdit, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletModes, getPortletName, getProcessingEventQNames, getPublicRenderParameterDefinitions, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, getWindowStates, init, processAction, processEvent, render, renderHeaders
-
Constructor Details
-
DHtmlLayoutPortlet
public DHtmlLayoutPortlet()
-
-
Method Details
-
init
public void init() throws javax.portlet.PortletException- Overrides:
initin classjavax.portlet.GenericPortlet- Throws:
javax.portlet.PortletException
-
doView
protected void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException - Overrides:
doViewin classjavax.portlet.GenericPortlet- Throws:
javax.portlet.PortletExceptionIOException
-
serveResource
public void serveResource(javax.portlet.ResourceRequest request, javax.portlet.ResourceResponse response) throws javax.portlet.PortletException, IOException Process AJAX request here instead of DHtmlUpdateServlet if the Portal Container support JSR 286.- Specified by:
serveResourcein interfacejavax.portlet.ResourceServingPortlet- Overrides:
serveResourcein classjavax.portlet.GenericPortlet- Throws:
javax.portlet.PortletExceptionIOException- Since:
- 6.5.2
-
process
protected boolean process(Session sess, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, String path, boolean bRichlet) throws javax.portlet.PortletException, IOException Process a portlet request.- Returns:
- false if the page is not found.
- Throws:
javax.portlet.PortletExceptionIOException- Since:
- 3.0.0
-
getNamespace
Returns the namespace for resource request parametersDefault: "".
- Since:
- 6.5.6
-