Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

31
Web 2.0 Solutions with Oracle WebCenter 11g Plinio Arbizu Amit Gupta Ashok Aggarwal Sukanta Hazra Chapter No. 6 "Portlets"

Transcript of Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

Page 1: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

Web 2.0 Solutions with Oracle WebCenter 11g

Plinio Arbizu

Amit Gupta

Ashok Aggarwal

Sukanta Hazra

Chapter No. 6

"Portlets"

Page 2: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

For More Information: www.packtpub.com/web-2-0-solutions-with-oracle-webcenter-11g/book

In this package, you will find: A Biography of the authors of the book

A preview chapter from the book, Chapter NO.6 "Portlets"

A synopsis of the book’s content

Information on where to buy this book

About the Authors Plinio Arbizu is member of Oracle ACE Director Program, sponsored by otn.oracle.com, which selects professionals in the world who have a strong technical level and commitment to Oracle technology diffusion. He has more than ten years of IT experience in projects using Oracle Technology, for commercial, pharmaceutical, and finance areas in companies like Bristol Myers Squibb Peru and Consite.

Currently, he lives in Mexico and serves as a Senior Consultant in Deloitte Consulting. Also, he is an Official Oracle University Instructor in courses like JEE and Oracle WebCenter. Additionally, he has participated as a speaker and organizer of Oracle technology events in Colombia, Chile, Argentina, and Peru

Plinio is a graduate of computer engineering at the Pontificia Universidad Catolica del Peru. You can follow him through his blog: http://plinioa.blogspot.com.

Page 3: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

For More Information: www.packtpub.com/web-2-0-solutions-with-oracle-webcenter-11g/book

I begin by thanking James Lumsden, for the opportunity to write this book. His encouragement, support, and commitment were vital to complete this project.

This book could never have happened without the guidance of our editor, Rakesh Shejwal, who has always been looking after our deliveries. Thanks for your coordination and collaboration in the technical reviews of each chapter.

I would also like to acknowledge the Oracle WebCenter team; Vince Casarez and George Maggessy. They provided invaluable contributions with knowledge and tools.

Special thanks to Leena Purkait, who from the beginning was following the development of each chapter. Her persistence and dedication was instrumental in completing the book.

Finally, my gratitude to the whole team at Packt Publishing. Thanks for your effort and support in the publication of the book.

Ashok Aggarwal has been delivering web-based collaboration, document management, content management, and workflow solutions using Oracle's products since before they were named Enterprise 2.0. As Oracle's offerings have matured and the market has grown, so has Ashok's involvement in the Oracle Fusion Middleware technology stack, leading to early adoption of Oracle WebCenter Suite 10g and 11g. Since 2002, Ashok has delivered robust solutions by leading a highly talented implementation organization, M&S Consulting. Prior to co-founding M&S, Ashok focused on delivery of enterprise applications and integration solutions at Accenture in a variety of industry verticals. Ashok has led innovative business transformation initiatives leveraging SOA, BPM, BI, Identity Management, and Enterprise 2.0 technologies as he works to solve today's most challenging business problems. He is a regular instructor and speaker at private and public events. Along with white papers and trade journal publications on Fusion Middleware, Ashok is co-authoring an Oracle SOA book and sponsoring technology and process publications for others on his team at M&S Consulting. Ashok holds a B.S. in Biomedical Engineering and a Minor in Computer Science from The Johns Hopkins University.

To the talented and tireless M&S team, our wonderful customers, the Oracle E2.0 team, Packt Publishing, and, most importantly, my family and friends. All have supported me greatly in this process.

Page 4: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

For More Information: www.packtpub.com/web-2-0-solutions-with-oracle-webcenter-11g/book

Amit Gupta has spent most of his career in high technology, media, and infrastructure. He currently leads the Enteprise 2.0 infrastructure and development team at M&S Consulting.

Amit co-founded Affle Limited, which is a mobile media company with extensive operations in the Asia-Pacific region. While there, he helped to drive new product initiatives and helped to complete Microsoft's strategic investment in Affle. Prior to Affle, Amit worked at Bloomberg New York, and subsequently at Bloomberg London, helping to plan and implement major new projects such as "Bloomberg Anywhere" that helped to drive $500M+ in new revenues annually. While there, he also designed and implemented highly scalable system architectures that were used to support millions of users. Systems integration is his specialty.

He is a technology enthusiast and likes to get his hands dirty with new projects. He has also spent time at various high-technology companies, developing and applying virtual reality applications, medical imaging algorithms, neural networks, and financial trading systems. Amit holds a B.S. in Computer Science (Honors) from The Johns Hopkins University (USA).

To my supportive family, the Oracle Team, and Packt Publishing. This would not have been possible without you.

Sukanta K. Hazra has a passion for technology and constant desire to try out new areas. This has taken him through academic research on wireless networks and networking protocols, mobile software development, mobile advertisement platforms, and enterprise software and architecture. His experience in various fields has given him a unique perspective on software development and the evolution of software and systems in the evolving technology landscape.

Sukanta was one of the founding members of Affle Limited, which is a mobile media company with extensive operations in the Asia-Pacific region. At Affle, Sukanta led the development of their mobile software products, working on several mobile platforms. He also designed and led the implementation of Affle's mobile advertisement platform. Prior to Affle, he worked as a researcher in the field of wireless networks at the Institute for Infocomm Research, Singapore.

Page 5: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

For More Information: www.packtpub.com/web-2-0-solutions-with-oracle-webcenter-11g/book

He has contributed several papers to IEEE conferences and journals. Sukanta considers himself to be a 'geek' and both enjoys tinkering with the guts of the system and is equally comfortable dealing with the high-level architectural view of the system. His current passion is Service-Oriented Architecture and the use of use of open standards and their consequent impact on the enterprise.

Sukanta holds both a Masters degree in Engineering and a Bachelors degree (Honors) in Engineering from National University of Singapore.

To the thousands of software engineers out there who are making it a better world for all of us. To my colleagues at M&S Consulting for their encouragement and helpful advice, and to Packt Publishing for their suggestions and patience. Thank you for making this possible.

Page 6: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

For More Information: www.packtpub.com/web-2-0-solutions-with-oracle-webcenter-11g/book

Web 2.0 Solutions with Oracle WebCenter 11g Oracle WebCenter Suite is the industry's most comprehensive enterprise portal platform designed for business users, unified with business applications, Enterprise 2.0 services, and social communities. It incorporates Web 2.0 content, collaboration, and communication services. However, without proper guidance on developing performance-critical enterprise applications, it is easy to make the wrong design and technology decisions.

Packed with screenshots, this book offers you in-depth knowledge of developing custom WebCenter applications for your various enterprise requirements. Integrate various web services to make development simpler and faster. Build fast, reliable, and robust Web 2.0 applications with this hands-on practical tutorial.

Oracle WebCenter Suite is a stack of products that helps implement Web 2.0 solutions in organizations. This book enables developers to learn the important concepts. It shows several scenarios where Oracle WebCenter 11g technology can be used to improve the productivity of your organization. Each chapter provides a practical application of the technology. It will guide you through many web-building features such as pages and portlets.

Finally, the book describes complete solutions, such as Oracle WebCenter Spaces, and ready-to-use collaborative environments.

What This Book Covers Chapter 1, What is Oracle WebCenter?, summarizes the features of Oracle WebCenter and shows the business needs that this technology solves.

Chapter 2, WebCenter Installation and Configuration, provides the necessary instructions to install WEB Center Suite successfully in an environment standard of development.

Chapter 3, Setting up the Development Environment, helps us to prepare the development environments and the application server, in order to support our WebCenter applications.

Chapter 4, Getting Started with WebCenter Development: Hello World(s), helps us create a HelloWorld web service. We also accomplish a verification of our development environment and gain confidence in being able to build the foundational components and skills needed for WebCenter development.

Page 7: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

For More Information: www.packtpub.com/web-2-0-solutions-with-oracle-webcenter-11g/book

Chapter 5, Design and Personalization, explains how to develop templates and add data access features to our WebCenter applications.

Chapter 6, Portlets, explains how to implement features using portlets in our applications, as component reuse is one of principal goals of our applications.

Chapter 7, Discussions, Wiki, and Blog Services, demonstrates simple ways to incorporate the Wiki and Blog Services into your custom WebCenter applications.

Chapter 8, Search Service, explores the WebCenter Search Service, Tags, Links, and RSS. By creating a sample application, it explains how to integrate WebCenter Search Service into your custom WebCenter application.

Chapter 9, Personalization with Oracle Composer, works with Oracle WebCenter in two parts. In the first part, as developers, we prepare the environment for end users. Then, we assume the role of end user to personalize the page defined in the previous step.

Chapter 10, Oracle WebCenter Spaces Overview, shows how to configure and customize Oracle WebCenter Spaces.

Page 8: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

For More Information: www.packtpub.com/web-2-0-solutions-with-oracle-webcenter-11g/book

PortletsIn the previous chapter, we looked at how to build a page containing information on our example company's requirements, and the offers made by its suppliers. Now, we are interested in adding a chart to that page that graphically shows the status of requirements pending and closed, as a percentage. However, this graph will not only be required on this page but in many others. Therefore, it is necessary build this chart as a reusable component. In this kind of scenario, the technology of portlets can help us.

A portlet is a component of software that can be part of a page. In consequence, a page can be enriched by many portlets allowing us to grab the contents of various sources of data. This chapter will help us to understand the concept associated with this technology and how it can apply to our projects with Oracle WebCenter.

During this chapter, you will learn the following:

• JSF specifi cation concepts• The types of portlets you can build with WebCenter• Developing a portlet using ADF• Integrating portlets with custom Applications

Page 9: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing

For More Information: www.packtpub.com/web-2-0-solutions-with-oracle-webcenter-11g/book

Portlets

[ 128 ]

Portlets, JSR-168 specifi cation Specifi cation JSR-168, which defi nes the Java technologies, gives us a precise defi nition of Java portlets:

Portlets are web components—like Servlets—specifi cally designed to be aggregated in the context of a composite page. Usually, many Portlets are invoked to in the single request of a Portal page. Each Portlet produces a fragment of markup that is combined with the markup of other Portlets, all within the Portal page markup.

You can see more detail of this specifi cation on the following page:http://jcp.org/en/jsr/detail?id=168

While the defi nition makes a comparison with servlets, it is important to note that the portlets cannot be accessed directly through a URL; instead, it is necessary to use a page-like container of portlets.

Consequently, we might consider portlets as tiny web applications that return dynamic content (HTML, WML) into a region of a Portal page.

Graphically, we could view a page with portlets as follows:

Additionally, we must emphasize that the portlets are not isolated from the rest of the components in the pages, but can also share information and respond to events that occur in other components or portlets.

Page 10: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 11: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 12: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 13: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 14: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 15: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 16: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 17: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 18: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 19: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 20: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 21: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 22: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 23: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 24: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 25: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 26: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 27: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 28: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 29: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 30: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing
Page 31: Web 2.0 Solutions with Oracle WebCenter 11 g - Home | Packt Publishing