This was very easy to follow with our instructor. Very informative, taught me some new tricks. ... More Testimonials »

Advanced ColdFusion Training: Components, Error Handling and Complex Objects

Delivery Options

Class Date and Time Price Pricing Information Register
Apr 15 - 16, 2010 10:00 AM - 5:00 PM ET $790.00 or 2 vouchers Register
May 6 - 7, 2010 10:00 AM - 5:00 PM ET $790.00 or 2 vouchers Register
Jun 10 - 11, 2010 10:00 AM - 5:00 PM ET $790.00 or 2 vouchers Register

Class Description

Class Overview

In this advanced ColdFusion class, you will learn the many methods of reusing code (including <cfinclude>, custom tags and stored procedures). You will also learn how to predict and prevent errors so your users will never see ugly error pages. In addition, you will learn to use Regular Expressions to perform advanced form validation.

Class Goals

  • Learn to create and use complex data objects.
  • Learn to write cfscript code.
  • Learn to build and use Custom Tags.
  • Learn to build and use ColdFusion Components (CFCs).
  • Learn to handle errors properly.
  • Learn to page through recordsets.
  • Learn advanced form validation with regular expressions.

Class Outline

  1. Complex Data Objects
    1. Scalar Variables
    2. Lists
    3. Arrays
    4. Structures
    5. Exercise: Arrays and Lists
  2. Looping with <cfloop>
    1. Syntax of <cfloop>
    2. Weeding Out the FIELDNAMES Variable
    3. Using <cfloop> for automatic query output
    4. Display Web-safe Colors using CFLOOP
    5. Exercise: Display results with <cfloop>
  3. Queries of Queries
    1. Demo: Query of Query
    2. Exercise: Query of query to display "classic movies"
  4. <cfscript>
    1. Syntax Rules
    2. Reserved Words
    3. Looping with <cfscript>
    4. GetTickCount() - testing the speed of your code
    5. Exercise: Setting Variables with <cfscript>
  5. Custom Tags
    1. Demo: custom tags
    2. Where to store Custom Tags
    3. Demo: Custom Tag with Parameters
    4. CALLER and ATTRIBUTE scopes
    5. Using <cfmodule>
    6. Exercise: Using Custom Tags
  6. Building ColdFusion Components
    1. Benefits to using CFCs
    2. Creating Components
    3. Calling or Invoking Components
    4. Passing Arguments to Components
    5. The main CFML page
    6. Three Ways to Pass Arguments
    7. Where to save CFCs
    8. Self-documenting - View a Component directly in the browser
    9. Exercise: Creating ColdFusion Components with Arguments
  7. Object-Oriented CFCs
    1. Object-Oriented Principles
    2. Demo: CFC using Object-Oriented Model
    3. How does use of a CFC compare to other OO languages?
    4. Demo: CFC using Object-Oriented Model
    5. Inheritance
    6. Demo: Inherit from another CFC
    7. Access control
    8. Exposing CFCs as Web Services
    9. Exercise: Build OOP CFC with Parameters to Edit Courses
  8. Automatic Includes: Application.cfm and onRequestEnd.cfm
    1. New Application Framework: Application.cfc
    2. Exercise: Store DSN and Company Name as Application Variables
  9. Using Application Variables
    1. Exercise: Cycle through Featured Movies Using Application Variables
  10. Standard Error Handling
    1. Application.cfm
    2. Demo: the error page
    3. Demo: detailed error page
    4. Exercise: Replace the Default Error Page
  11. Structured Error Handling
    1. <cftry> and <cfcatch>
    2. Demo: Using <cftry>
    3. Transactions with <cftransaction> and <cftry>
    4. Classic <cftransaction> example
    5. Demo: Using <cftransaction> with <cftry>
    6. Exercise: Using <cftransaction> to Avoid Errors
  12. Stored Procedures
    1. Benefits of Stored Procedures
    2. Demo: Stored Procedure
    3. Demo: pass a parameter to a stored procedure
    4. Exercise: Pass Parameters to a Stored Procedure
  13. Showing portions of a Recordset
    1. Paging through records
    2. Exercise: Add "Next" and "Previous" links to the Actors list
  14. Using Regular Expressions
    1. Special Symbols for Matching Specific Characters
    2. Specify the number of occurrences
    3. Placement of the pattern
    4. POSIX Syntax
    5. Perl Syntax
    6. Demo: Testing Regular Expressions
    7. Exercise: Using Regular Expressions for Advanced Form Validation

Class Materials

All students receive a course manual or book and all the class examples.

Students in private onsite classes will also receive:

Class Prerequisites

Experience in the following areas is required:

  • Basic ColdFusion

Courses that can help you meet these prerequisites:

Technical Requirements

Our computer technical requirements and setup process is easy, with support just a click away.

Client Success
  1. Independent Survey
  2. Client List
  3. Testimonials
Join The Team
  1. Learn how you can become a Webucator Trainer
  2. Career Opportunities
Training Classes
Locations
Live eLearning

Like a class you would go to, but you don't have to go anywhere. More...

Customized Onsite Training

The trainer comes to you and delivers a class customized for your team. More...

Self-Paced eLearning

Our least expensive option. You proceed through the course entirely at your own pace. More...

Reference Library
Partner Programs
© Webucator, Inc. All rights reserved. | Toll Free: 877-932-8228 | UK: 0808-101-3484 | From outside the USA: 315-849-2724| Fax: 315-849-2723