Cloud Computing Conference
March 30 - April 1, New York
Register Today and SAVE !..

2008 East
DIAMOND SPONSOR:
Data Direct
Frontiers in Data Access: The Coming Wave in Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
Intel
Virtualization – Path to Predictive Enterprise
Green Hills
IT Security in a Hostile World
JBoss / freedom oss
Practical SOA Approach
GOLD SPONSORS:
Software AG
The Art & Science of SOA: How Governance Enables Adoption
PlateSpin
Effective Planning for Virtual Infrastructure Growth
Fujitsu
Automated Business Process Discovery & Virtualization Service
Ceedo
Workspace Virtualization
Click For 2007 West
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts

SYS-CON.TV
TOP THREE LINKS YOU MUST CLICK ON


Understanding the Portal Framework
Understanding the Portal Framework

This is the third and final article in a series aimed at demystifying the frameworks that compose the BEA WebLogic Portal.

Although this month I focus on the portal framework, you should realize that the value of WebLogic Portal is in the combination of frameworks, components, and wizards that enable the creation of Web-based applications that provide value to the end customer and the hosting business. The customer benefits by being presented with a solution that is easy to use, personalizes content and services, and provides a much better user experience. The business saves money by maintaining only one portal solution that provides a view into all of its back-end systems, requiring only one portal solution throughout its departments, having a decoupled solution that allows the changing of back-end systems without enforced change to the front-end enterprise portal, and reusing application components throughout the enterprise. The core business also improves by having a solution that intelligently adapts itself to the user's dynamic user profile, provides the ability to intelligently execute campaigns, and provides the means to dynamically modify the application logic after the business analysts have completed their analysis of their online business, thus providing a 360-degree feedback loop.

The portal framework is an adaptable presentation engine that aggregates visual presentation components, called portlets, into a single presentation unit and enables the interaction between these presentation units to create a dynamic and interactive Web front end to a business application. The main components in the portal framework are the Flow Controller, Portal Page Generator, Portlet Page Generator, Portlets, and custom JSP tags. This article will describe each component in detail and walk the reader through a framework execution scenario.

Portal Framework
The portal framework can be logically divided into two major functional areas. The first is the aggregation of visual components, and the second is the management of the dynamic interaction between the different visual components and the management of incoming requests from the user. In the interest of not turning this article into a voluminous white paper, I will focus only on the aggregation of visual portal components. Those of you who want a more detailed understanding of the interaction between the different portlets, the management of incoming requests, and the wizards that increase developer productivity, are encouraged to read the material located on BEA's online documentation Web site.

The main components of the portal engine responsible for aggregating the visual components in the portal framework are the PortalWebflowServlet, the portal.jsp page, the portlet.jsp page, and the custom JSP tags (see Figure 1). The PortalWebflowServlet uses the same architecture as the WebflowServlet architecture described in "Building Adaptive Applications with Reusable Components" (WLDJ, Vol. 1, issue 6), and is the cornerstone for handling the interportlet communication and the management of incoming requests (see Figure 2).

Flow Controller
The PortalWebflowServlet is the Java servlet responsible for handling flow control for the portal framework. This portal flow controller intercepts incoming requests from the client and determines whether the request is intended for a portal Web application. If the request is intended for a portal Web application, the servlet hands control to the portal Webflow executor, which would invoke the portal page generator (see Figures 1 and 3). The portal page generator then manages the creation of the portal page and all of its composite parts.

Portal Page Generator
The portal.jsp file is the portal page generator responsible for combining the disparate visual components that make up the portal page. The portal page generator would aggregate the header and footer content for the page, and incorporate the content returned by the portlet page generator (see Figure 3). The functionality contained in the portal.jsp page can be extended by the portal developer to include custom functionality. However, it is not recommended to hard-code custom functionality into the page, as there is no guarantee that the portal page generator will not change in future releases of the product.

Portlet Page Generator
The portlet.jsp file is the portlet page generator responsible for combining all the visual portlet components into a compound visual portlet unit. The portlet page generator would aggregate all the different portlets into an HTML table that conforms to the layout and visibility strategies determined by the portal administrator. The availability of portlets is governed by the business rules processed by the entitlements engine, which also makes use of the user's user and group profile information. Like the portal page generator, the functionality contained in the portlet.jsp page can also be extended by the portal developer to include custom functionality. Again, it is not recommended that you hard-code custom functionality into the page, as there is no guarantee that the portlet page generator will not change in future releases of the product.

Portlet Pages
Portlet pages are visual components that provide specific business functionality and content. Each of the portlet pages or components can be considered to be a single reusable visual unit that is shared amongst different portal deployments. A portlet can be constructed to provide services or data from one single back-end source or multiple back-end sources. Each portlet component can be composed of a combination of the following subcomponents: titlebar, banner, header, footer, and content section. Some of the out-of-the-box portlets that come with the product include functionality for collaboration, calendaring, Webmail, chat, whiteboard, and discussion groups.

Portal and Portlet Management JSP Tag Library
These custom management tags allow JSP developers to access the portal framework functionality of WebLogic Portal without having to write EJB client code. The portal framework management JSP tag libraries are divided into three main categories; portal, portlet and utility. The JSP: tags in the portal category are used to execute management functionality that is specific to the internal workings of the portal as a whole; the JSP tags in the portlet category are used to execute portlet specific functionality; and the JSP tags in the utility category are used to perform URL validation. (For more information on the parameters for each JSP tag and for the entire WebLogic Portal JSP tag library, visit the BEA online documentation Web site: http://edocs.bea.com.)

Portlet JSP Tags
Instead of having the portlet developer write custom code to call the PortalWebflowServlet, custom JSP tags are provided to increase productivity and to minimize the potential of malformed calls. Portlet JSP tags are provided to properly construct a Webflow URL, an HTML form, and an HTML form that takes advantage of the data validation component in the portal framework. Additionally, custom JSP tags are provided to display an Edit portlet, a minimized portlet, an unminimized portlet, a maximized portlet, an unmaximized portlet, a floating portlet, and the exceptions thrown by the Webflow processor. Each of the tags in the portlet JSP tag group is focused on managing each portlet component and is meant to be called in the portlet content page.

More information on the portlet JSP tags can be found at http://edocs.bea.com/wlp/docs70/jsp/mngprtal.htm#1002046.

Portal JSP Tags
Like the portlet JSP tags, the portal JSP tags are used mainly to aid the portal developer by providing helper tags that increase the developer's productivity. Portal JSP tags are provided to properly construct a Webflow URL, an HTML form, and an HTML form that takes advantage of the validation component in the portal framework. Additionally, a custom JSP tag is provided to notify the PortalWebflowServlet of the event that the user is changing a page. Each of the tags in the portal JSP tag group is focused on managing the portal solution as a whole and is meant to be called in the portal page generator file. More information on the portal JSP tags can be found at http://edocs.bea.com/wlp/docs70/jsp/mngprtal.htm#1003563.

Utility JSP Tags
The two utility JSP tags provided are used as sanity processing rules in the JSP tag. The first utility JSP tag will process the code contained with the brackets if the URL provided is valid. The second utility JSP tag will process the code contained within the brackets if the URL provided is invalid. Since these tags can be used in either the portal page or any of the portlet pages, they are part of the utility category.

More information on the utility JSP tags for the portal framework can be found at http://edocs.bea.com/wlp/docs70/jsp/mngprtal.htm#1004198.

Conclusion
The portal framework enables the reuse of visual components, and manages the interaction between the visual components and any incoming requests. Coupling the portal framework with the personalization, entitlements, and campaign frameworks provides the ability to create intelligent applications that can adapt themselves to each specific user.

My goal in this series of articles was to provide a clearer understanding as to the components and functionality that the portal, event, and advisor frameworks provided. The key concepts that are embodied in each of these frameworks are that they can be used in a unified manner, they are simple to use, and they can easily be extended to suit custom business needs.

Finally, I strongly suggest that each of you visit the BEA Portal Solution Center (http://portalsolutions.bea.com/index.jsp). This Web site contains white papers; development documents; sample code; and a catalog of partner portlets, integrated offerings, and total portal solutions.

About Dwight Mamanteo
Dwight Mamanteo is a technical manager with the Global Alliances Technical Services organization at BEA Systems. He has been with BEA since 1999 and his current job responsibilities include providing technical enablement support to BEA's strategic SI and ISV partners. He has been involved with object-oriented programming, design and architecture since 1993.

BEA WEBLOGIC LATEST STORIES
Okay, here's the deal. When you observe the big software guys and see how quickly they adopt emerging technologies, which will change IT the way we know it today, here is what we see. Larry Ellison invested millions in old SaaS / cloud companies, which gave him zippo in return, and he ...
SYS-CON Events announced today that more than 40 Cloud technology providers, as well as Virtualization and SOA companies will exhibit at the upcoming 1st International Cloud Computing Conference & Expo (www.CloudComputingExpo.com), November 19-21, in San Jose, California. The conferenc...
SYS-CON Events announced today that the leading global SOA, Virtualization, Cloud Computing and Open Source technology provider FreedomOSS named "Gold Sponsor" of SYS-CON's SOA World Conference & Expo which will take place November 19-21, 2008, at the Fairmont Hotel in the heart of Sil...
Cassatt, the company started by BEA founder Bill Coleman, is redirecting its data center widgetry into creating internal clouds comparable to Amazon or Google out of infrastructure customers already have in-house. Coleman observed that most IT professionals aren’t comfortable outsour...
Just as people begin to understand the difference between web ops and IT, we are entering a period where clouds promise "Ops-Free" computing. Because it’s easy, scalable, available and disposable, the cloud is well on its way to becoming “technology’s next big thing.” However, ...
As far as the software industry goes, these tough economic days give the biggest business advantage to those companies who contribute directly to the solution of the big global problem and they will be the first to flourish as we dig ourselves from the ditch. Call that the new Y2K prob...
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS

ADS BY GOOGLE
BREAKING NEWS FROM THE WIRES

Active Endpoints, Inc. (Dec. 2, 2008 09:17 AM