SYS-CON Media
 Register Now!
Save $200
Register before October 17th to SAVE! ... and also receive a FREE copy of the Best-Selling AJAX Book, a $119 Value!
Untitled Document
2008 East
Platinum Sponsor
Untitled Document
2008 East Gold Sponsors
Untitled Document
2008 East Exhibitors
Untitled Document
2008 East Media Sponsors
Untitled Document
2008 Association Sponsor
SYS-CON Media
2007 West Sponsors
Goingtomeet.com Conference Directory
SYS-CON Media
2007 East Sponsors
Untitled Document
2008 SYS-CON Events

Can't Miss RSS Feed
Subscribe to the AJAXWorld.com RSS Feed & Get All The Conference News As It Happens!

2008: Decision Year for RIAs - October 20-22, 2008 San Jose


RIA With Adobe Flex and Java Book Errata
RIA With Adobe Flex and Java Book Errata

Please submit your findings to the book authors by sending an email at info at faratasystems dot com

page 113. Replace the namespace riabook with mafia

package com.theriabook.tax{
import com.theriabook.namespaces.*;
public class Tax
{
regular static function calcTax():Number{
return 3500;
}
riabook static function calcTax():Number{
return 1750;
}
}
}

page 114. Use mafia namespace to match the changes above

use namespace riabook;
and the amount of the tax to be paid will be substantially lower. Besides the directive use that affects
the entire block of code, AS3 permits finer-grained notation to refer to a specific namespace
with a name qualifier (a double colon). In our example, this may look like:
tax = Tax.riabook::calcTax();


 Page 131,
The instructions I would add to page 131 (Gas Station example) after you instruct the reader to add the code snippet so that filtering by message

type (the combo box) will occur.  I believe you should also add an instruction to the user to add
  change="msgList.refresh()"

to the mx:ComboBox control.  Otherwise the user can change the combo box  selection, but the filter will not be applied to the datagrid.

 Pages 147-148, listing 4.41 and 4.42 - the following code in listing 4.42:

<ctrl:LargeGreenButton    greenClickEvent="greenButtonHandler(event)"/>

should be changed to

<ctrl:LargeGreenButton    addItemEvent="greenButtonHandler(event)"/>

In listing 4.41, the name given to the Event is addItemEvent and that is the event that is dispatched in the greenClickEventHandler function (may
want to also change that function's name).  So the custom LargeGreenButton component (listing 4.41)  does not have a greenClickEvent property but does have an addItemEvent property.

Therefore in listing 4.42, where the reader is shown an example of using the LargeGreenButton component, the propery name should be addItemEvent
not greenClickEvent.

Page 168.  After we wrote the portfolio example, Adobe changed the API and explode radius has to be under 1, for example exploderadius=".2".  Change it to make the pie slice to work properly on the click event. See the source of this application deployed at : http://samples.faratasystems.com/portfolio/PortfolioRpcDemo.html

Page 185,  Listing 5.20 (financialnews2.mxml)  this line:

<mx:XMLListCollection id="newsList" source="{newsFeed.result.channel.item}" />

 
should read

 
<mx:XMLListCollection id="newsList" source="{newsFeed.lastResult.channel.item}" />

 Page 185,

FinancailNews2.mxml exposes a property named security and in PortfolioRPCDemo.mxml  binds the security property to the PortfioloView5’s selectedSecurity property. When the program first runs, no item is selected in the datagrid, so the selectedSecurity property is null and thus the value of security is also null.  Thus this function in FinancialNews2.mxml may not receive a correct value when the application first starts. 

                                                 public function set security(value:String):void {

                                                                this.title = "News: " + value;

                                                                newsFeed.send({s:value});

                                                }

 Thus the call to newsfeed.send will not have a correct value and the HTTPService will fail and the fault event handler will run.  I modified the above function to:

 
public function set security(value:String):void {

                                                                this.title = "News: " + value;

                                                                if ( value.length > 1 )

                                                                  newsFeed.send({s:value});

                                                }

So that the HTTPService send method is only called if value has  a length.  After making this modification the code ran fine from the start.

Page 449. Missing comma between the arguments in the signature of the setFormat function. It has two arguments: dgc and formatString.


Page 548, listing 13.5 – The loadShow method needs to assign a LoaderContext object when calling photo.load so that it checks crossdomain policy files. The following line

photo.load(new URLRequest(photoNode.@source));

should be changed to

var context:LoaderContext = new LoaderContext(true);
photo.load(new URLRequest(photoNode.@source), context );


Page 552, The call to show.playShow is not required in the service result event code.


Page 558, listing 13.11 – The following code

if(sound!=null) { sound.play(gotoTime); }

should be changed to

if(sound!=null) { sound.play(gotoTime * 1000); }


Page 562, listing 13.16 – The bindings in the source attribute of the image component should be updated to reference e4x attributes as follows:

source=" http://static.flickr.com/{data.@server}/{data.@id}_{data.@secret}_s.jpg"


Page 564, listing 13.18 – The bindings in the dataProvider attribute and code in the change attribute of the gallery TileList component should be updated as follows:

dataProvider="{service.lastResult.photos.photo}"

change="selectSlide('http://static.flickr.com/' + event.currentTarget.selectedIte
m.@server + '/' + event.currentTarget.selectedItem.@id + '_' + event.currentTarget.selectedItem.@secret + '_m.jpg', 10);"

Page 615. The first call in the function  xlResend() has extra parentheses and should read  fxMetadata();
About Yakov Fain
Yakov Fain is a Java Champion and a co-founder of the IT consultancy Farata Systems and the product company SuranceBay. He wrote a thousand blogs (http://yakovfain.com) and several books about software development. Yakov authored and co-authored such books as "Angular 2 Development with TypeScript", "Java 24-Hour Trainer", and "Enterprise Web Development". His Twitter tag is @yfain

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

Please.. when do you will update this wonderful book with adobe flex 3 specifications? with adobe flex 3 API? is there any project?

I'm trying to run the Portfolio example from Chapter 5 using Flex Builder 3 with LiveCycle Data Service 2.6 in JBoss 4.2.2 (JDK 1.6). The .war deploys without a problem (I had to change some port numbers in services-config.xml), but when I try to go to the deployed application using this URL

http://localhost:8080/ch05-stock-portfolio-lcds-POJO/PortfolioView.html

I get this error:

Error: No class registered for interface 'mx.styles::IStyleManager2'.
at mx.core::Singleton$/getInstance()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Singleton.as:111]
at mx.styles::StyleManager$/get impl()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\styles\StyleManager.as:78]
at mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::initProtoChainRoots()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\styles\StyleManager.as:144]
at PortfolioView/http://www.adobe.com/2006/flex/mx/internal::_PortfolioView_StylesInit()[C:\dean\src\flex\fain.book\ch05\stock-portfolio-lcds-POJO\flex_src\PortfolioView.mxml:0]
at PortfolioView()[C:\dean\src\flex\fain.book\ch05\stock-portfolio-lcds-POJO\flex_src\PortfolioView.mxml:0]

If I use the following URL for the autogenerated index.html

http://localhost:8080/ch05-stock-portfolio-lcds-POJO/

I get no error, but the application doesn't run.

Do I need to change the index.html page to access the PortfolioView application? Something else I need to do?

The link to your sample code is broken. Is there a new link?

Thanks.

Hi, I'd really like to buy this book, but we are already on Flex 3 and I fear that this book will not introduce me to all the new potentials of flex 3 especially when applied to Java. Have you got in mind any updates?

Thanks.

M.

Any hints on how to get riabook code to "just work" w/eclipse+fb?

I'm using Eclipse Europa w/WTP. So far, what I've found is:
1. Create a new workspace.
2. Create a new, empty Flex project. This is needed to get proper Flex support loaded into workspace.
3. Use import wizard to import w/root directory set to code/flex directory from theriacode.zip.

There are a number of hard-coded references (e.g., "c:\fds\..." in project files.

It would be helpful to have a version that would "just work", or to have instructions for customizing the supplied code. (I'm eager to get to the "good stuff", rather than mucking about w/eclipse & fb).

Thanks!


Latest AJAXWorld RIA Stories
Enterprises are striving to become digital businesses for differentiated innovation and customer-centricity. Traditionally, they focused on digitizing processes and paper workflow. To be a disruptor and compete against new players, they need to gain insight into business data and...
Containers and Kubernetes allow for code portability across on-premise VMs, bare metal, or multiple cloud provider environments. Yet, despite this portability promise, developers may include configuration and application definitions that constrain or even eliminate application po...
Digital Transformation: Preparing Cloud & IoT Security for the Age of Artificial Intelligence. As automation and artificial intelligence (AI) power solution development and delivery, many businesses need to build backend cloud capabilities. Well-poised organizations, marketing sm...
DXWorldEXPO LLC announced today that Ed Featherston has been named the "Tech Chair" of "FinTechEXPO - New York Blockchain Event" of CloudEXPO's 10-Year Anniversary Event which will take place on November 12-13, 2018 in New York City. CloudEXPO | DXWorldEXPO New York will present ...
Chris Matthieu is the President & CEO of Computes, inc. He brings 30 years of experience in development and launches of disruptive technologies to create new market opportunities as well as enhance enterprise product portfolios with emerging technologies. His most recent venture ...
Untitled Document

Call 201 802-3020 or Click Here to Save $200!

Register Today and
Save $200

Your registrations includes: Golden Pass Delegates will receive full conference access on October 20-22, 2008 including: Lunch and Coffee Breaks, Collectible Bag and Archives of all sessions on DVD. Includes access to all Conference Sessions including the Technical Sessions, Exhibits, Keynotes, Vendor Technology Presentations, and Power Panels.


Sponsorship Opportunities

AJAXWorld offers the undisputed best platform to position your company as a leading vendor in the fast-emerging marketplace for AJAX and Enterprise Web 2.0.


Please call
(201)802-3020


Who Should Attend?

 CTOs & VPs of Engineering
 Directors of Technology
 Sr. User Interface Architects
 Front-End Engineers
 VCs & Industry Analysts
 Directors of Business Development
 Software Engineers
 Senior Architects
 Application Programmers & Software Developers
 Project Managers
 Web Programmers & Designers
 Companies & Organizations that need to stay in
  front of the latest Web technology

AJAXWorld Security Bootcamp

Introducing at AJAXWorld RIA Conference 2008 West the world's first-ever full, one-day immersive "AJAX Security Bootcamp" - led by one of the world's foremost AJAX security experts and teachers, HP's Billy Hoffman.

View the full one-day schedule



AJAXWorld 2008 West - Tracks

Track 01: Enterprise RIAs
Track 02: Frameworks & Toolkits
Track 03: Web 2.0 & Mashups
Track 04: Hot Topics
Track 05: The Future of the Web
Track 06: iPhone Developer Summit



Brought To You By:

AJAXWorld Magazine is the pre-eminent independent vendor-neutral resource for the fastest growing new segment of the software business: entirely Web-based applications and experiences.

Download the Latest Issue!

AJAXWorld Webcasts



SYS-CON EVENTS


AJAXWorld Keynotes & Power Panels

2008 SYS-CON TV Keynotes: Can We Fix the Web? By Douglas Crockford - by Douglas Crockford
2008 SYS-CON TV Keynotes: 2008: The Year of the RIA - by Anthony Franco
2008 SYS-CON TV Power Panel: The Business Value of RIAs
2008 SYS-CON TV Power Panel: What Lies Beyond AJAX
2007 SYS-CON TV Keynotes: Why Web 2.0 for the Enterprise Is Far More Than Just a Facelift - by Ted Farrell
2007 SYS-CON TV Keynotes: Fueling the Next Generation Web: A Peek Behind the Green Curtain - by Bob Brewin
2007 SYS-CON TV Keynotes: AJAX in the Balance - by Joe Stagner

AJAXWorld Sessions on SYS-CON.TV

· Bill Scott - Yahoo! UI Library
· David Heinemeier Hansson - AJAX on Rails
· Jesse James Garrett - Elements of User Experience
· Dion Hinchcliffe - Real World AJAX
· Eric Miraglia - Open Source AJAX Development
· Paul Rademacher - Mashing Up Your Web Application
· Adam Sah - Google Gadgets
· Doug Crockford - An Introduction to JavaScript
· David Linthicum - Enterprise Web 2.0
· Patrick Grady - The Imagination & Experience Web

AJAXWorld...All The AJAX Rock Stars in One Spot!


Past Events Archive

SOAWorld Conference & Expo 2008 East
soa2008east.sys-con.com
Virtualization Conference & Expo 2008 East
virt2008east.sys-con.com
AJAXWorld 2008 Conference & Expo East
ajaxmar08.sys-con.com
SOAWorld Conference & Expo 2007 West
www.soaworld2007.com
Virtualization Conference & Expo 2007 West
virt2007west.sys-con.com
AJAXWorld 2007 Conference & Expo West
ajaxoct07.sys-con.com
SOAWorld Conference & Expo 2007 East
soa2007east.sys-con.com
Virtualization Conference & Expo 2007 East
virt2007east.sys-con.com
AJAXWorld 2007 Conference & Expo East
ajaxmarch07.sys-con.com
Other SYS-CON Events
events.sys-con.com

Join Over 10,000 Early AJAX Adopters
Who Have Attended AJAXWorld
• A&R Edelman
• Academic Enterprise
• Accoona Corp [2 delegates]
• Acxiom
• Adams Capital Management
• Adaptive Edge
• Adaptive Path
• Adobe Systems Incorporated [21 delegates]
• Adobe Systems Romania
• Ajax13
• All Risks, Ltd.
• alliance
• Alliance For Community Care
• AlphaDetail Inc
• Altera Corporation
• Amazon.com [6 delegates]
• Appeon Corporation [2 delegates]
• Apple Computer [5 delegates]
• Apress [3 delegates]
• Arkivio
• ASA
• Astute Solutions
• Avaya Inc [2 delegates]
• Avenda Systems
• Avenue A | Razorfish [3 delegates]
• Axcella, LLC [2 delegates]
• Aximsoft
• Azimyth
• Backbase USA Inc. [4 delegates]
• BAE Systems [2 delegates]
• Bank of America [2 delegates]
• Barkley Evergreen & Partners Interactive
• Bayview Financial [2 delegates]
• BEA Systems [3 delegates]
• Billeo
• BMC Software, Inc. [2 delegates]
• Borland Software Corporation
• Bradford Technologies, Inc [2 delegates]
• Brilliance
• Brocade Communications Systems, Inc. [2 delegates]
• Brookside Capital LLC
• Brulant
• Bungee Labs, Inc [6 delegates]
• Bureau of Labor Statistics
• BUZ Interactive
• Cadena Software
• Calix Networks
• Callidus Software [2 delegates]
• Cambia Security
• Carnegie Mellon West
• Cautella, Inc.
• CBSA
• Celequest [3 delegates]
• Change Vision, Inc.
• Charles E. Kenney, CPA
• Charles Schwab & Co., Inc. [8 delegates]

   read more...


ADVERTISE   |   MAGAZINE SUBSCRIPTIONS   |   FREE BREAKING-NEWSLETTERS!   |   SYS-CON.TV   |   BLOG-N-PLAY!   |   WEBCAST   |   EDUCATION   |   RESEARCH

.NET Developer's Journal - .NETDJ   |   ColdFusion Developer's Journal - CFDJ   |   Eclipse Developer's Journal - EDJ   |   Enterprise Open Source Magazine - EOS
Open Web Developer's Journal - OPEN WEB   |   iPhone Developer's Journal - iPHONE   |   Virtualization - Virtualization   |   Java Developer's Journal - JDJ   |   Linux.SYS-CON.com
PowerBuilder Developer's Journal - PBDJ   |   SEO / SEM Journal - SJ   |   SOAWorld Magazine - SOAWM   |   IT Solutions Guide - ITSG   |   Symbian Developer's Journal - SDJ
WebLogic Developer's Journal - WLDJ   |   WebSphere Journal - WJ   |   Wireless Business & Technology - WBT   |   XML-Journal - XMLJ   |   Internet Video - iTV
Flex Developer's Journal - Flex   |   AJAXWorld Magazine - AWM   |   Silverlight Developer's Journal - SLDJ   |   PHP.SYS-CON.com   |   Web 2.0 Journal - WEB2

SYS-CON MEDIA:   ABOUT US   |   CONTACT US   |   COMPANY NEWS   |   CAREERS   |   SITE MAP
SYS-CON EVENTS  |  AJAXWorld Conference & Expo  |  iPhone Developer Summit  |  OpenWeb Developer Summit  |  SOA World Conference & Expo  |  Virtualization Conference & Expo
INTERNATIONAL SITES:   India  |  U.K.  |  Canada  |  Germany  |  France  |  Australia  |  Italy  |  Spain  |  Netherlands  |  Brazil  |  Belgium
 Terms of Use & Our Privacy Statement     About Newsfeeds / Video Feeds
Copyright ©1994-2008 SYS-CON Publications, Inc. All Rights Reserved. All marks are trademarks of SYS-CON Media.
Reproduction in whole or in part in any form or medium without express written permission of SYS-CON Publications, Inc. is prohibited.