Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.



Published on

Enterprise Open Source Portal, CMS, Web Publishing, Collaboration, and Social Networking Software.

  • Be the first to comment


  1. 1. Portlet development using Liferay Presentation by: Arun.
  2. 2. Yahoo- One of the first
  3. 3. Portlet Pluggable UI s/w components. Non-overlapping windows. Can be placed anywhere.
  4. 4. Portal Collection of portlets. Web based application. Single Sign on.
  5. 5. Portlet Container Runs Portlets. Portlet life cycle is managed by containner. Persistent storage of preferences.
  6. 6. Similarities <ul><li>Servlets </li></ul><ul><li>Web based components </li></ul><ul><li>Servlet container </li></ul><ul><li>Static and Dynamic contents </li></ul><ul><li>Lifecycle controlled by container </li></ul><ul><li>Request Response semantics similar </li></ul><ul><li>Portlets </li></ul><ul><li>Web based components </li></ul><ul><li>Portlet container </li></ul><ul><li>Static and Dynamic contents </li></ul><ul><li>Lifecycle controlled by container </li></ul><ul><li>Request Response semantics similar </li></ul>
  7. 7. Differences <ul><li>Servlets </li></ul><ul><li>Complete web pages </li></ul><ul><li>Html tags allowed </li></ul><ul><li>Direct Url access </li></ul><ul><li>Portlets </li></ul><ul><li>Fragments </li></ul><ul><li>Not allowed </li></ul><ul><li>Points to the page </li></ul>
  8. 8. Features * Communication between the web client and the portlets performed through the portal * Provided with buttons or controls to manipulate portlets’ window states or portlet modes * Multiple instances of a single portlet placed onto the same page
  9. 9. contd: *Persistent configuration and customization * Support user profile information * Two scopes within the session; application scope and portlet scope
  10. 10. Portlet Standards JSR 168. JSR 286.
  11. 11. JSR-286 Features Events. Public render parameters. Resource Serving. Portlet Filters.
  12. 12. Modes & Window State View Edit Help Maximized Minimized Normal
  13. 13. Portlet Entity Storing user preferences in persistent data store. Available across server restarts. Preferences & portlet definitions in deployment descriptor. Preferences are given in key/value pair.
  14. 14. Portlet Deployment Deploying web application in application server. Deploying portlets in portal server.
  15. 15. Portlet methods doView(RenderRequest req,RenderResponse res) processAction(ActionRequest req,ActionResponse res) doEdit(RenderRequest req,RenderResponse res) serveResource(RenderRequest req,RenderResponse res)
  16. 16. Portlet Session PORTLET_SCOPE : Storing data specific to a single portlet instance within a user's Session. APPLICATION_SCOPE: Across all portlets within the same session.
  17. 17. Portal Vendors JetSpeed 2.1.3 ATG Portal AquaLogic Weblogic Sun Java System Portal Server 7.2 Portal 10 Liferay Portal 5.2.2
  18. 18. Why Liferay? * Zero License Fees * Open Source * Standards Support * High Compatibility * Pre-Bundled Portlets * High-Value Support Contracts
  19. 19. Thanks :-)