PacktLib: ColdFusion 9 Developer Tutorial

ColdFusion 9 Developer Tutorial

Credits

About the Author

About the Reviewers

Preface

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/

Conditional processing with switch

Summary

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

Summary

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

Summary

ORM Database Interaction

Introduction to ORM in ColdFusion

Working with entity-object relationships

ORM functions

Summary

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

Summary

Authentication and Permissions

How ColdFusion recognizes users

Custom authentication (additional power)

Extra notes

Summary

CFScript

Script basics

Exception handling

New functions/commands in CF9

Summary

CF AJAX User Interface

Changing times

ColdFusion AJAX

Styling notes

Tips

Map interaction

Summary

CF AJAX Forms

AJAX forms

Grid updates and deletes

Linked grids

The date requestor

The autosuggest box

The directory tree

Message boxes

Progress bar

Summary

CF AJAX Programming

Binding

Bind with event

Extra binding notes

Multiple radio buttons or checkboxes and multiple select

Spry binding

CFAJAXProxy

CFC proxy class objects

Client debugging

Firebug

Built-in debugging

Summary

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

Summary

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

Summary

Control Logic Processing

The code side of applications

Shared variables

Processing request events

Remote AJAX events

Data versatility

Personal extension of COOP

Summary

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

Summary

Beyond this Book

Beyond this Book

Beyond this Book

Beyond this Book

Beyond this Book

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources

Tools and Resources