Sample Flex Portal

To speed up your portal development, this section describes a sample Flex portal that you can download from the site accompanying this book. You’ll need to download the following projects:

PortalLib

Utility library referenced by all other projects

Feeds

Combined Flex/Java Dynamic Web Project with GoogleFinancialNews and YahooFinancialNews applications

Charts

Combined Flex/Java Dynamic Web Project with Chart1 and Chart2 applications

Portal

Combined Flex/Java Dynamic Web Project with the SamplePortal application

PortalBootstrapLoader

ActionScript project

Figure 7-21 illustrates running SamplePortal, which you should start via PortalBootstrapLoader:

http://localhost:8080/Portal/PortalBootstrapLoader.html?app=/Portal/SamplePortal.swf

You can to create instances of portlets of different types by dragging and dropping on the portal canvas the navigational items located in the lower part of the screen, such as “Same Sandbox—Child Domain,” “Same Sandbox—Sibling Domain,” and “Different Sandbox—Different Domain.”

Each portlet is contained by a custom resizable and draggable Panel and carries either the GoogleFinancialNews or the YahooFinancialNews application, according to the descriptor of the navigation items in SamplePortal, as shown in Example 7-46.

Example 7-46. SamplePortal

<?xml version="1.0" encoding="utf-8"?> <!-- SamplePortal --> <mx:Application layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:fx="http://www.faratasystems.com/2009/portal" > <mx:Style source="styles.css"/> ...

Get Agile Enterprise Application Development with Flex now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.