File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Difference between portlet and application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Difference between portlet and application" Watch "Difference between portlet and application" New topic
Author

Difference between portlet and application

vishnu neerukattu
Greenhorn

Joined: Aug 16, 2007
Posts: 15
Hi All,
Request you to let me know the difference between portlet and application
Jonas X. Yuan
author
Ranch Hand

Joined: May 18, 2008
Posts: 108
Hi,

Abstract from Liferay Book (JSR-286 spec.).

A portal page is made of a set of portlets. For example, the portal page such as Welcome contains portlets such as Navigation, Language, and so on And the portlet Language has icons (such as Look and Feel, Configuration, Minimize, Maximize, and Remove), title icon and title (such as Language), and a window which may contain contents (such as a set of language icons and links).

In a normal way, a portlet is an application that provides some content (such as information or service) that forms part of a portal page. A portlet container handles the portlets. A portlet container also processes requests and generates dynamic content. Actually, portals use portlets as pluggable user interface to provide a presentation layer information.

Loosely speaking, portlets are fragments of an HTML page, that is pieces of markup (such as HTML, XHTML, WML, and so on). The content of a portlet is normally aggregated with the content of other portlets to form the portal page. The lifecycle of a portlet is managed by the portlet container. The content generated by a portlet may vary from one user to another, depending on the user configuration for the portlet.


Books: Liferay Portal 6.1 Systems Development
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

I might even add a new term to your query: "Portlet application"

An application itself can be anything. In the Windows world, it's an executable. On the web, it's probably a bunch of Servlets and JSPs working together.

On the portal, we use the term portal application. A portal or portlet application would be multiple individual portlets that are packaged in a common war file, that together provide a common user experience. So, a tax preparation portlet application might have a few portlets: one that helps you do your taxes, another that shows you retirement investment plans, another that provides tax savings tips, and another that provides various payment schedules for loans or mortgages. It is very conceivable that a tax planning application might have these various features. On the portal, each would be provided as perhaps an individual portlet, or window, that provides specific details, but can work with other portlets that are part of a portal application.

Having said that, a portal page might have portlets from varios different portlet applications. Just look at facebook or a yahoo portal. Those pages have many portlets providing information, although each individual portlet might be packaged and deployed in a separate war, aka portal application.

-Cameron McKenzie
 
Consider Paul's rocket mass heater.
 
subject: Difference between portlet and application
 
Similar Threads
portlet
JSR v/s IBM portlet
is there any difference between portlet and portlets
What is Portlets and difference between Portlets
JSF 2.0 portlet development