Featured Posts

Introducing Portlet Generator 1.0 I've just added the portlet generator utility to this site.  This utility replaces the "create.bat" and "create.sh" scripts that come with Liferay's PluginSDK.  It offers...

Readmore

Hello Struts Portlet I've placed a very simple Hello Struts portlet in the downloads section. It doesn't do nearly enough to show the power of Struts in Liferay. Look for a future Struts portlets...

Readmore

Hello jQuery Portlet I was recently asked: "What is jQuery?". By now, most Javascript enthusiasts understand the advantages of jQuery's power. To demonstrate one of those advantages, I've added...

Readmore

Hello Spring Portlet I've placed a simple, Hello World type Spring portlet in the downloads section. Check it out. It uses the Spring ParameterizableViewController to forward to the view JSP.

Readmore

Using jQuery with Liferay, Part 2 Four more core effects are Show, Toggle, Fade In, and Animate.   This week's portlet and the screencast below gives a demonstration of these four effects in a Liferay Portlet....

Readmore

RobiSoft.com Rss

Introduction to Portlet Development

by Jeff Robinson

 

In the beginning there was the static, immovable web page, always displaying reliably within your (insert your vendor name here) browser. Then came the urgency for making web pages more interactive and the content dynamic. After several different approaches and evolutions, we now have what is widely known as Web 2.0. Part of the technology behind Web 2.0 is the development specification for portlets.

 

To understand portlets, you have to first know about servlets. Servlets are Java class components that execute on the server per web-page request and which returns the reply back as a recognizable browser response. (Go to this link, Java Servlet Technology, to find out more about servlets.)  Portlets, therefore, are what you get when you sub-divide this request/response system among several different Java class components. In other words, instead of just a single servlet being responsible for handling the response, multiple little servlets (or portlets) become responsible for handling the response.

 

Of course, there are many other things you need to know about how portlets work. For instance, you need to know that another layer of control is added to the server with the use of a special container, known as a Portlet container. This container manages the portlets and ensures that the proper request/response is handled among the portlets. Additionally, there is the Portal layer that encompasses the portlet container, content management, administrative task, etc.

 

The technical standard for using is embodied in the JSR-168-Portlet Specification document (see link to the PDF below). You should read and understand this specification before proceeding further with your discovery of portlets on the web. A new standard, JSR-286, is also available which remedies most of the deficiencies of the the prior specification.

 

Morethan likely if you’ve come to this site, it is because you are using the Liferay® Open Source Enterprise Portal. Liferay® is the leading open source portal in the world and has a comprehensive, integrated content management interface. Although there are other portals in the marketplace, Liferay® is, in my opinion, without compare. You canfind a wealth of information about using Liferay® at the Liferay Wiki.

 

If you have any questions, do not hesitate to send them to support@robisoft.com


References

  1. JSR-168 Portlet API 1.0 FR

  2. JSR-286 Portlet API 2.0 FR

  3. Tutorial on Java Servlet Fundamentals

  4. Java Portlet Specification Introduction

  5. Liferay® for Dummies