| By Indroniel Deb Roy, Alex Nhu | Article Rating: |
|
| March 31, 2007 05:45 AM EDT | Reads: |
17,938 |
Portlet Window
The portlet window provides the face of a Web application in
the portlet container. On portlet instantiation after downloading the portlet
module from the container server, this window connects to the Web server, which
the portlet depends on for data, and then shows the portlet UI populated with
data from the server. This window has common icon buttons: setting, help,
minimize, maximize, and restore. The portlet window and its views are shown in
Figure 5.

public interface IPortlet
{
function
get shortTitle():String;
function
get isFlipping():Boolean;
function
doFlip():void;
function
getPrintView():Container;
function
isPortletAccessible(IPortalUser user):void;
}
Portlets are deployed to portal container as Flex modules.
The module contains the Flex UI of the portlet in a IPortlet implementation.
The main module inside the portlet also needs to implement the IPortletModule
interface so that the actual IPortlet implementation present in the portlet
module can be easily loaded.
public interface
IPortletModule
{
function
getPortlet():IPortlet;
}
The Flex container discussed here can host portlets running
on any back-end data. The only requirement is the crossdomain.xml file that
needs to be present in the server from where the portlet is getting data, with
an entry exposing the container root URL. Flex portlets written on J2EE, .NET,
Web services, or any other custom back end can readily be hosted in the Flex
container.
In this section I explain a simple implementation with the features
described in the previous section. For brevity I won’t discuss every detail
here, but just try to clarify the basic infrastructure and concepts. Refer to Figure
6 for more details

This article provides just a cursory look at the Flex portal
container. The detailed implementation and architecture details can not be
covered in one article. I have already done a basic implementation of the Flex
portal container; please refer to reference section for more details. Depending
on the response to this article, I can start an open source project sharing my
code and, with active participation from the community, build a full-fledged Flex
portal container. The only flip side to this approach is that the Web application
needs to be written in Flex to get any benefit from this portal container. The
non-Flex JSP/ASP-based Web application won’t benefit without a Flex-based rewrite
of the application.
References
http://developers.sun.com/portalserver/reference/techart/jsr168/
www.jcp.org/en/jsr/detail?id=286
www.jcp.org/en/jsr/detail?id=301
Using Flex in a Portal
http://www.adobe.com/devnet/flex/articles/flex_portals_04.html
https://portlet-container.dev.java.net/
Published March 31, 2007 Reads 17,938
Copyright © 2007 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Indroniel Deb Roy
Indroniel Deb Roy works as an UI Architect for BlueCoat Systems.He has more than 10 years of development experience in the fields of J2EE and Web Application development. In his past he worked in developing web applications for Oracle, Novell, Packeteer, Knova etc. He has a passion for innovation and works with various Web2.0 & J2EE technologies and recently started on Smart Phone & IPhone Development.
More Stories By Alex Nhu
Alex Nhu works as a manager, UI Development at Packeteer Inc. He has more than 11 years of work experience designing and architecting complex server-side J2EE and XML applications. He loves developing Web applications with Flex now after getting a taste of developing UI using other RIA platforms.
![]() |
srinuguda 08/21/09 12:46:00 AM EDT | |||
Hi, Kindly post the some sample on portlet implementation in flex. Regards, |
||||
![]() |
Lord1984 03/13/09 11:59:40 AM EDT | |||
Hi, very good article... When you talk about portlet window you mean that portlet window is a mx panel and it contains a module, is it true? Where download the source? thanks. |
||||
![]() |
sreiner 11/09/08 07:12:47 PM EST | |||
Is the source available? The link mentioned in the feedback only runs a demo (with no flex "view src"). The article mentioned "source code for the interfaces can be found in the annexure-1". Thanks. |
||||
![]() |
Indroniel Deb Roy 04/03/08 07:04:27 AM EDT | |||
Try the following URL: |
||||
![]() |
Sujit Reddy G 03/31/08 04:02:04 AM EDT | |||
This is a awesome idea. The link is broken. can you please post the URL to the implementation. |
||||
![]() |
Indroniel Deb Roy 12/20/07 06:22:09 AM EST | |||
Here is the link to a basic flex container implementation showing some portlets based on the Amazon Web Service. |
||||
![]() |
Indroniel Deb Roy 12/18/07 06:24:21 PM EST | |||
I got a preliminary version of the Flex Container up and running with stuff discussed in the article with some sample portlets. I will post the URL soon, so that everyone can get a feel of it! |
||||
![]() |
Andrea Bosio 12/01/07 04:28:58 AM EST | |||
Great article and excellent idea! Our company could be very interested and actively involved in this open source porject. At the moment we are setting up and deploing Liferay Portals as intranet system to our customers. Please contact me if you decide to start the project or if you are looking for partners. |
||||
![]() |
Luke 11/23/07 07:26:33 AM EST | |||
Excellent overview article. We're looking at Flex as a portal/portlet technology for the next overhaul of our intranet system, I would be very keen to be involved in a dedicated container. Please let me know if you decide to post this as an open source project. |
||||
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Adobe Unveils LiveCycle Enterprise Suite 2 for Deployment in the Cloud
- Adobe Flex Developer Earns $100K in New York City
- Adobe May Cooperate with Apple to Transplant Flash Player to iPhone
- Ph.D. in Twitter Anyone?
- Eolas Sues the Internet
- Adobe LiveCycle Enterprise Suite 2 for Cloud Computing
- Adobe Betas Target RIAs and Cloud Computing
- Special Report on the Emerging Cloud Computing Trend
- Adobe Cans Another 9% of its Workforce
- My Thoughts on Ulitzer
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Ulitzer Live! New Media Conference & Expo
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Eval JavaScript in a Global Context
- Fig Leaf Software to Exhibit at Government IT Conference & Expo
- Cloud Executives Feature on Cloud Computing Expo Power Panel
- Software Flexibility in the Cloud - Part 4 of 5
- Cloud Computing Journal: Adobe to Deliver ColdFusion in the Cloud
- Is Microsoft as Free as Open Source?
- Adobe Reader Sued
- Adobe Unveils LiveCycle Enterprise Suite 2 for Deployment in the Cloud
- Where Are RIA Technologies Headed in 2008?
- Cover Story: How to Increase the Frame Rates of Your Flash Movies
- AJAX World RIA Conference & Expo Kicks Off in New York City
- Your First Adobe Flex Application with a ColdFusion Backend
- Adobe Flex 2: Advanced DataGrid
- i-Technology Blog: Death-Knell For "Rich Media? Hardly!
- Adobe/Macromedia - Microsoft, Look Out!
- How To Create a Photo Slide Show ...
- Adobe Flex Interface Customization - Themes, Styles, Skins
- Personal Branding Checklist
- Has the Technology Bounceback Begun?
- "Real-World Flex" by Adobe's Christophe Coenraets




































