org.zkoss.zk.ui.http
Class DHtmlLayoutPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by org.zkoss.zk.ui.http.DHtmlLayoutPortlet
All Implemented Interfaces:
javax.portlet.EventPortlet, 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:

To patch the rendering result of a ZK portlet, you can implement PageRenderPatch (and specified it in Attributes.PORTLET_RENDER_PATCH_CLASS).

Author:
tomyeh

Constructor Summary
DHtmlLayoutPortlet()
           
 
Method Summary
protected  void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
           
protected  java.lang.String getNamespace(javax.portlet.RenderResponse response)
          Returns the namespace for resource request parameters Default: "".
 void init()
           
protected  boolean process(Session sess, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, java.lang.String path, boolean bRichlet)
          Process a portlet request.
 void serveResource(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, doDispatch, doEdit, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processAction, processEvent, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHtmlLayoutPortlet

public DHtmlLayoutPortlet()
Method Detail

init

public void init()
          throws javax.portlet.PortletException
Overrides:
init in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException

doView

protected void doView(javax.portlet.RenderRequest request,
                      javax.portlet.RenderResponse response)
               throws javax.portlet.PortletException,
                      java.io.IOException
Overrides:
doView in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

serveResource

public void serveResource(javax.portlet.ResourceRequest request,
                          javax.portlet.ResourceResponse response)
                   throws javax.portlet.PortletException,
                          java.io.IOException
Process AJAX request here instead of DHtmlUpdateServlet if the Portal Container support JSR 286.

Specified by:
serveResource in interface javax.portlet.ResourceServingPortlet
Overrides:
serveResource in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException
Since:
6.5.2

process

protected boolean process(Session sess,
                          javax.portlet.RenderRequest request,
                          javax.portlet.RenderResponse response,
                          java.lang.String path,
                          boolean bRichlet)
                   throws javax.portlet.PortletException,
                          java.io.IOException
Process a portlet request.

Returns:
false if the page is not found.
Throws:
javax.portlet.PortletException
java.io.IOException
Since:
3.0.0

getNamespace

protected java.lang.String getNamespace(javax.portlet.RenderResponse response)
Returns the namespace for resource request parameters

Default: "".

Since:
6.5.6


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo