Sun Java System Portal Server 7.1 Developer's Guide

Methods to Override

When extending from the GenericPortlet abstract class, the following methods should be overridden:

public void init(PortletConfig config)

The container calls this method once when the portlet object is created.

protected void doView(RenderRequest req, RenderResponse resp)

The render method calls this method when the portlet is in VIEW mode. The GenericPortlet class’ default implementation only throws an exception.

protected void doEdit(RenderRequest req, RenderResponse resp)

The render method calls this method when the portlet is in EDIT mode. The GenericPortlet class’ default implementation only throws an exception.

protected void doHelp(RenderRequest req, RenderResponse resp)

The render method calls this method when the portlet is in HELP mode. The GenericPortlet class’ default implementation only throws an exception.

public void processAction(ActionRequest req, ActionResponse resp)

The GenericPortlet class includes a default implementation that only throws an exception.

public void destroy()

The container calls this method on the portlet when the portlet is being taken out of service.