Free Sample
+ Collection

ColdFusion 9 Developer Tutorial

John Farrar

Create robust professional web applications with ColdFusion
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849690249
Paperback388 pages

About This Book

  • Fast-paced guide to the foundational concepts of developing in ColdFusion
  • Broad coverage of CFScript to deal with its expanded power in ColdFusion 9
  • Enhance the user interface with built-in ColdFusion AJAX features (layout, forms, script, maps, and more)
  • Packed with example code and real-world knowledge

Who This Book Is For

This book is for web developers working with ColdFusion 9. If your goal is to get a good grounding in the basics of the language as quickly as possible and put a site together quickly, this book is ideal for you. This book will also help you if you want to learn more about professional programming of ColdFusion.

No prior knowledge of ColdFusion is expected, but basic knowledge of general web and software development skills is assumed.

Table of Contents

Chapter 1: Web Pages—Static to Dynamic
Turning HTML into a dynamic web page
Understanding and using simple variables
Understanding structures
Let's get interactive
Setting page defaults
Introduction to lists and loops
Understanding arrays
Conditional processing with If/<cfif>
Conditional processing with switch
Chapter 2: Basic CFCs and Database Interaction
Our first CFC
Our first object
Using an object constructor
Connecting to a database
Returning data from the CFC
Making our data query flexible
The basic data object concept
Object method access control
Chapter 3: Power CFCs and Web Forms
The practice of protecting access
Web forms introduction
Managing our product data
Getting data to our edit page
Saving our data
Improving page flow
Adding a new record
Let's look under the hood
Chapter 4: ORM Database Interaction
Introduction to ORM in ColdFusion
Working with entity-object relationships
ORM functions
Chapter 5: Application, Session, and Request Scope
Life span
Introducing the Application.cfc object
Application variables
The start methods
The end methods
Scope visibility
Practical application
Universal datasource
Mappings per application
Custom tag paths per application
Chapter 6: Authentication and Permissions
How ColdFusion recognizes users
Custom authentication (additional power)
Extra notes
Chapter 7: CFScript
Script basics
Exception handling
New functions/commands in CF9
Chapter 8: CF AJAX User Interface
Changing times
ColdFusion AJAX
Styling notes
Map interaction
Chapter 9: CF AJAX Forms
AJAX forms
Grid updates and deletes
Linked grids
The date requestor
The autosuggest box
The directory tree
Message boxes
Progress bar
Chapter 10: CF AJAX Programming
Bind with event
Extra binding notes
Multiple radio buttons or checkboxes and multiple select
Spry binding
CFC proxy class objects
Client debugging
Built-in debugging
Chapter 11: Introduction to Custom Tags
Different forms of code reuse
Custom tags
Custom header/footer tags
Nested tags
CFInclude from custom tags
Templates versus skins
Managing custom tags
CFModule approach
Tag library approach
Chapter 12: ColdFusion Powered Views
What is open source?
The fun factor
Happily separated
Turning lemons to lemonade
Fun with lists
Better form coding
Custom list item rendering
Chapter 13: Control Logic Processing
The code side of applications
Shared variables
Processing request events
Remote AJAX events
Data versatility
Personal extension of COOP
Chapter 14: Guide to Unit Testing
When to test
Installing our testing software
Understanding assertions
Testing private methods
Testing included files and custom tags
A son's view of testing

What You Will Learn

  • Foundational Concepts of Developing in CFML (ColdFusion Markup Language)
  • How to make your ColdFusion Components (CFCs) come alive with methods, using object inheritance, connecting to a database through the internal methods of your object/CFCs
  • Managing multiple products through common forms for listing, editing, and adding data
  • Debugging and unit testing techniques
  • How to pass information into a custom tag and learn the different methods of storing and accessing tags and tag libraries
  • Enhancing the user interface with built-in ColdFusion AJAX features (layout, forms, script, maps, and so on)
  • Managing files, emails, and images through CFML
  • Power mixing CFCs and custom tags using COOP library as an example to simplify view coding and understand event based objects
  • ORM database interaction covering the new data integration of Hibernate
  • The working of different variable scopes
  • Applications and authenticating users for roles and permissions
  • Integrating Feed, REST, and SOAP web services to interact with other sites

In Detail

Adobe ColdFusion is an application server, renowned for rapid development of dynamic websites, with a straightforward language (CFML), powerful methods for packaging and reusing your code, and AJAX support that will get developers deep into powerful web applications quickly. However, developing rich and robust web applications can be a real challenge as it involves multiple processes.

With this practical guide, you will learn how to build professional ColdFusion applications. Packed with example code, and written in a friendly, easy-to-read style, this book is just what you need if you are serious about ColdFusion.

This book will give you clear, concise, and practical guidance to take you from the basics of ColdFusion 9 to the skills that will make you a ColdFusion developer to be reckoned with. It also covers the new features of ColdFusion 9 like ORM Database Interaction and CF Builder.

ColdFusion expert John Farrar will teach you the basics of ColdFusion programming, application architecture, and object reuse, before showing you a range of topics including AJAX library integration, RESTful Web Services, PDF creation and manipulation, and dynamically generated presentation files that will make you the toast of your ColdFusion developer town.

This book digs deep with the basics, with real-world examples of the how and whys, to get more done faster with ColdFusion 9.


Read More