Java

Solo disponible en BuenasTareas
  • Páginas : 24 (5874 palabras )
  • Descarga(s) : 4
  • Publicado : 10 de noviembre de 2009
Leer documento completo
Vista previa del texto
Portlet Development Workbook
Using the Standard API

Tim Hanis, WebSphere Software Engineer, IBM August, 2006 © Copyright International Business Machines Corporation 2006. All rights reserved.

Portlet Development Workbook Table of contents

Introduction ......................................................................................................................... 3About the portlet application you create ......................................................................... 4 Chapter 1 - The development environment......................................................................... 4 Chapter 2 - Creating the Portlet Project .............................................................................. 5 Overview......................................................................................................................... 5 Detail ............................................................................................................................... 6 Chapter 3 - Database access from our portlet ..................................................................... 8 Creating the database andtable....................................................................................... 9 Define the data source ................................................................................................... 10 Create a Contact bean in Application Developer .......................................................... 11 Create a database accessclass....................................................................................... 11 Modify portlet doView method..................................................................................... 14 Modify the view JSP ..................................................................................................... 14 Start the portal server and execute................................................................................ 15 Chapter 4 - Portlet configuration....................................................................................... 16 Modify portlet deployment descriptor........................................................................... 16 Modify portlet doCustomConfigure method................................................................. 17 Modify Configure modeJSP......................................................................................... 18 Modify portlet processAction method........................................................................... 19 Modify code to use the data source name from portlet preferences.............................. 19 Chapter 5 - Portlet code clean up..................................................................................... 20 Constants ....................................................................................................................... 21 User id of the logged-in user ......................................................................................... 22 Chapter 6 - Portlet Edit mode: Part 1................................................................................ 24 Chapter 7 - Portlet Edit mode: Part 2 ................................................................................ 29 Chapter 8 - Portlet Edit mode: Part 3 ................................................................................ 34 Chapter 9 - Enhanced View mode..................................................................................... 39Chapter 10 - Required reading .......................................................................................... 42 Chapter 11 – Design considerations. Now? ..................................................................... 43 Portlet state.................................................................................................................... 44 Changing portlet...
tracking img