Thursday, October 28, 2010

JSR 168 Tutorial - part I


What is JSR 168?

•From the portletdevelopment point of view, it is really very simple:

–You write a java class that extends GenericPortlet.

–You override/implement several methods inherited from GenericPortlet.

–You use some supporting classes/interfaces

•Many are analogous to their servletequivalents

•Some (portletsession) actually seem to be trivial wrappers around servletequivalents in Pluto.

Some Terminology

Portlet: Java code that manages a piece of web content and which may invoke services.

PortletContainer: Manages the lifecycle of the portlets (inits, invokes,destroys).

Portal: Displays the portal content provided by the container. The portal is responsible for the actual layout.

Portlet Application: A webappcontaining a group of related portlets, content, supporting jars, etc.