contents

foreword
preface
acknowledgments
about this book
author online
about the authors
about the cover illustration

Part 1 Laying the foundation

Chapter 1 Some Flex with your Java?
A whirlwind tour of Flex
Creating an application in Flex
Finding the right tools and patterns
Summary
Chapter 2 Beginning with Java
Working with AppFuse
Generating the application structure with Maven
Build the model objects
Build the DAOs
Build the services
Wiring things together with Spring
Constructing the web tier
Summary
Chapter 3 Getting rich with Flex
Generating the application structure
Configuring the flex-bugs-ria module
Configure Maven for the flex-bugs-web module
Adding a wrapper for our SWF
“Hello World!” in Flex
Developing the FlexBugs application
Laying out the components
Creating a pop-up component
The finished application
Summary
Chapter 4 Connecting to web services
Model View Presenter
Web services in Flex
Dispatching and handling events
Creating Issue and Comment transfer objects
Enhancing the master view
Enhancing the detail view
Enhancing the comments view
Adding a pop-up form for editing comments
Summary

Part 2 BlazeDS remoting

Chapter 5 BlazeDS remoting and logging
Introducing BlazeDS
Getting BlazeDS
Building a BlazeDS configuration Maven module
Exposing Java services to Flex remoting
Connecting to Java with BlazeDS
Logging
Summary
Chapter 6 Flex messaging
Setting up BlazeDS for messaging
Modifying the client for messaging
Summary

Part 3 The joys of Flex on Java

Chapter 7 Securing and personalizing your application
Authentication
Authorization
Personalization
Summary
Chapter 8 Charting with Degrafa
Drawing in Flex
Common Degrafa concepts
Creating a pie chart for fun and profit
Adding your pie chart to the application
Beyond the example
Summary
Chapter 9 Desktop 2.0 with AIR
Creating a common library
Creating the AIR application
Packaging the AIR application
Distributing the AIR application
Summary
Chapter 10 Testing your Flex application
Unit testing and TDD
Updating the project
Testing the Presenter
Testing the View
Testing the Model
Continuous integration with Hudson
Summary
Chapter 11 Flex on Grails
Why Groovy and Grails?
Downloading and installing Grails
Creating the Grails application
Getting rich with Flex
Install the Grails JMS and ActiveMQ plugins
Add the ActiveMQ Spring bean
Subscribe the Flex client to the Grails JMS service
Summary
index