| By Anil Gurnani | Article Rating: |
|
| March 31, 2008 04:00 PM EDT | Reads: |
3,554 |
Step Two: Lay out the components on the canvas
Next drag-and-drop a "Top/Over layout container" from the System
Component Library onto the canvas. Add a label in the top pane and add
the text label "World Oil Consumption (Thousand barrels daily)" in it.
Also add a Matrix component in the bottom pane. Delete the columns that
are added by default, and add the columns (of the Text HTML type) for
this example. The key properties of the Matrix and its columns for this
example are:
Properties of the Matrix component:
- Clear the XML String that's added in by default
- Set the XML URL to point to the oilconsumption.xml file in the xml folder
- Set the Transformer property to point to xsl/oilconsumptionmatrix.xsl
- The Region column will have the caption Region and the Att Name property will be set to Region as well (to match the attribute name Region in the CDF)
- The Country column will have the caption Country and the Att Name property will be set to Country as well (to match the attribute name Country in the CDF)
- All year columns will have the caption of the year itself (1965, 1966...2006) and their Att Name properties will be set to y1965, y1966Éy2006 respectively to match the attribute names in the CDF. These columns will also have their Sort Att Type property set to "Numeric"
- The Value Template property in each year column will have a value template similar to the listing above valuetemplate1966.xsl. All columns have the same value template, except the names of the attributes being compared will be appropriate to each column. So, for example, the test @y1966 > @y1965 will change to @y1967 > @y1966 for the column named y1967 and so on. The matrix displayed in GI Builder should appear as shown in Figure 4.
At this point the table is already displayed as expected in the GI Builder tool and easily displays which countries are reducing or increasing their oil consumption. The last step is to create an HTML file to launch the same application outside of GI Builder. Use the deployment utility in the Project menu to create an HTML file. When clicking on the HTML file from Windows Explorer, the application window should appear as shown in Figure 5.
Performance Advantage: Faster Development
Besides
GI's runtime performance advantage, its author-time speed shouldn't be
overlooked. Authoring speed with GI is driven by three things: a
variety of ready-made AJAX components, visual tools for drag-and-drop
assembly of GUIs, and connectivity to data services.
GI includes a number of ready-to-use controls and widgets, such as context-sensitive menus, date/time picker, slider, dialog boxes, menu bars, stack groups, layouts, beyond Select, List, Combo box, and Button. All controls have numerous properties that can be manipulated to get the desired look-and-feel. All components are also rendered asynchronously on screen, which means GI makes efficient use of today's powerful processors by rendering in multiple threads. Most controls support the asynchronous loading of data for even faster performance - for example, a Select combo can display "loadingÉ" in the control while fetching the list to display in the control and draw the data as soon as it's available.
TIBCO GI also includes a number of development tools besides GI Builder, such as a JavaScript debugger, allowing users to step through JavaScript code one statement at a time. And there's a data-mapping tool for building XSL transformations without knowing anything about XSL. Just type in the URL of the XML data (or the URL of the WSDL for a Web Service) and the tool retrieves the XML and lets you visually map data elements from XML to individual attributes in the CDF. Then there's an XSL merge utility that can be used to quickly test XSL stylesheets against the data for the application. Finally, there's a performance profiler tool that can be used to identify potential areas of runtime performance improvements.
Published March 31, 2008 Reads 3,554
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Anil Gurnani
Anil Gurnani is a director in the strategic technology services division of Computer Science Corporation (CSC) and is currently architecting a next-generation Web 2.0 portal for a major financial services company in New York.
- Kindle 2 vs Nook
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- Confessions of a Ulitzer Addict
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Moving Your RIA Apps into the Cloud: Seven Challenges
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Windows 7 – Microsoft’s First Step to the Cloud
- Ulitzer Provides a Powerful Social Journalism Platform
- Jill Tummler Singer, Deputy CIO of CIA, Keynotes at GovIT Expo
- Open Source Mobile Cloud Sync and Push Email
- Kindle 2 vs Nook
- The Difference Between Web Hosting and Cloud Computing
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- Ajax in RichFaces 3.3, JSF 2 and RichFaces 4
- Confessions of a Ulitzer Addict
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- My Thoughts on Ulitzer
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- US Post Office Hops a Ride on NetSuite’s Cloud
- Moving Your RIA Apps into the Cloud: Seven Challenges
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Building a Drag-and-Drop Shopping Cart with AJAX
- What Is AJAX?
- Google Maps! AJAX-Style Web Development Using ASP.NET
- Flashback to January 2006: Exclusive SYS-CON.TV Interviews on "OpenAjax Alliance" Announcement
- AJAXWorld Conference & Expo to Take Place October 2-4, 2006, at the Santa Clara Convention Center, California
- AJAX Sponsor Webcasts Are Now Available at AJAXWorld Website
- How and Why AJAX, Not Java, Became the Favored Technology for Rich Internet Applications
- "Real-World AJAX" One-Day Seminar Arrives in Silicon Valley
- AJAXWorld University Announces AJAX Developer Bootcamp
- AJAX Support In JadeLiquid WebRenderer v3.1
- Where Are RIA Technologies Headed in 2008?
- Struts Validations Framework Using AJAX




































