Advanced ColdFusion Training: Components, Error Handling and Complex Objects (CFM202)
Course Length: 2 days
Delivery Methods:
Available as private class only
Course Overview
In this advanced ColdFusion training 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 in ColdFusion so your users will never see ugly error pages. In addition, you will learn to use Regular Expressions to perform advanced form validation.
Course Benefits
- 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.
Course Outline
- Charting
- Course Introduction and
<cfchart>
- Introduction
- Course Objectives
- Course Prerequisites
- Course Project
- Charting and Graphing Options
- Using
<cfchart>
vs.<cfchartseries>
- Caching Charts
- Using
- Course Introduction and
- Complex Objects
- Manipulating Complex Data Objects (Lists, Arrays, Structures and Queries)
- Scalar Variables
- Lists
- Arrays
- Structures
- Looping with
<cfloop>
- Syntax of
<cfloop>
- Weeding Out the FIELDNAMES Variable
- Using
<cfloop>
for automatic query output - Display Web-safe Colors using CFLOOP
- Syntax of
- Queries of Queries
- Manipulating Complex Data Objects (Lists, Arrays, Structures and Queries)
- Components
- CFCs - Building ColdFusion Components
- Benefits to using CFCs
- Creating Components
- Calling or Invoking Components
- Passing Arguments to Components
- The main CFML page
- Three Ways to Pass Arguments
- Where to save CFCs
- Self-documenting - View a Component directly in the browser
- Object-Oriented CFCs
- Object-Oriented Principles
- How does use of a CFC compare to other OO languages?
- Inheritance
- Access control
- Exposing CFCs as Web Services
- CFCs - Building ColdFusion Components
- Application Framework
- Application Framework
- Automatic Includes: Application.cfm and onRequestEnd.cfm
- New Application Framework: Application.cfc
- Using Application Variables
- Application Framework
- Error Handling
- Errors and Exceptions
- Standard Error Handling
- Application.cfm
- Structured Error Handling
<cftry>
and<cfcatch>
- Transactions with
<cftransaction>
and<cftry>
- Classic
<cftransaction>
example
- Errors and Exceptions
- Reusing Code
- Reusing Code
- Limited Capabilities of
<cfscript>
- Syntax Rules
- Reserved Words
- Looping with
<cfscript>
- GetTickCount() - testing the speed of your code
- Limited Capabilities of
- Custom Tags
- Where to store Custom Tags
- CALLER and ATTRIBUTE scopes
- Using
<cfmodule>
- Stored Procedures
- Benefits of Stored Procedures
- Showing portions of a Recordset
- Paging through records
- Reusing Code
- Regular Expressions (optional)
- Advanced Validation with Regular Expressions (optional)
- Special Symbols for Matching Specific Characters
- Specify the number of occurrences
- Placement of the pattern
- POSIX Syntax
- Perl Syntax
- Advanced Validation with Regular Expressions (optional)
Class Materials
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
Class Prerequisites
Experience in the following is required for this ColdFusion class:
- Basic ColdFusion
Live Private Class
- Private Class for your Team
- Live training
- Online or On-location
- Customizable
- Expert Instructors