| By Indroniel Deb Roy, Alex Nhu | Article Rating: |
|
| March 31, 2007 05:45 AM EDT | Reads: |
17,938 |
A Portal Solution Apt
for Web2.0/AJAX
Flex has gained a lot momentum as a rich and versatile
framework for rich Internet application development using
For the JSR portlet solution, a Web application already
having a UI based on JSP/Struts/Spring needs to be rewritten from scratch to
enable it to deploy in a portal container. However, with the current approach,
if a Flex UI for an existing Web application can be reused to put inside the Flex
portal container, just a module wrapper needs to be written and a cross-domain
policy file may need to be put inside the host Web application from where the
portlet gets its data. This is possible only because Flex keeps it UI logic
separated from data. The cross-domain policy file just enables the UI to
connect to the data. This goes well with the paradigm “Write Once, Deploy
Anywhere.”
Flex provides a rich framework to connect to a Web service
and get data. When talking to a Web service, a Flex application can directly
connect to it without the need for any cross-domain policy file. Ideally, if
any portlet is designed to connect to a Web service, it can be readily deployed
in the Flex portal container.
One of the major drawbacks of a JSR portal solution is the
deployment where every container provides it own rules to deploy a portlet
application. However in this approach, deployment means just providing the
portlet module file that contains the full portlet logic and a portlet
deployment descriptor that provides the configuration and security information
about the portlet. As the portlet contains only the Flex UI code and has no
data logic embedded in it, the Flex container can easily hot deploy the
portlet. Also the same portlet app can be redeployed in any other container
without any change. If not Web services–based, the cross-domain policy file
needs to be updated in the host server to expose the new deployed portal
container.
The portal container manages the infrastructure to show and
provide basic support for the portlets, and the actual rendering and UI logic
is left to the individual portlet applications. This provides a flexible way to
implement the contained portlets. Ideally the container can easily host
portlets written to fetch data from J2EE, .NET, Web services, or any custom
back-end implementation. Moreover, it can readily embed the Flex UI written for
an application with minimal change. Ideally a rich portal UI can be delivered
without going through complicated standards, such as WSRP, with better results.
Let’s look into a simple Flex portal container with its
basic functionalities. For brevity, it’s kept fairly simple.
The portal container provides the basic framework to
aggregate content from different Web applications and provides the
infrastructure to manage different views and orientation on a per-user basis.
It also provides the common gateway to manage and restrict content depending on
the logged-in user’s roles. See Figure 3 for more details.

Inter-Portlet Communication
Inter-portlet communication can happen very easily between
portlets using rich Flex event support. To provide a simple idea on the
inter-portlet communication, there are truly two kinds of intra-portlet
communication possible: communication with server-side data state change and
without server-side data state change. The inter-portlet communication without server-side
data state change is pretty easy where the inter-portlet communication is done
only in the client browser; however, inter-portlet communication that needs
server-side data state change, first fires the source event that changes the
data state in the server, and then on a successful return, fires the event to
the destination to reflect the new change.

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





































