2007 Adobe Systems Incorporated. All Rights Reserved. 1 Glenda Vigoreaux Adobe Certified Instructor roundpeg, Inc. Component Development.

Slides:



Advertisements
Similar presentations
ColdFusion 8 Ajax Features Overview Scott Bennett
Advertisements

Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
Web Applications Development Using Coldbox Platform Eddie Johnston.
CS-2135 Object Oriented Programming
OOP in Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Aalborg Media Lab 23-Jun-15 Inheritance Lecture 10 Chapter 8.
Chapter 12: Advanced Topics: Exception Handling Visual Basic.NET Programming: From Problem Analysis to Program Design.
ASP.NET Programming with C# and SQL Server First Edition
Chapter 13: Object-Oriented Programming
Course Textbook: Build Your Own ASP.Net Website: Chapter 2
Using Data Active Server Pages Objectives In this chapter, you will: Learn about variables and constants Explore application and session variables Learn.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
CSM-Java Programming-I Spring,2005 Introduction to Objects and Classes Lesson - 1.
Chapter 12: Adding Functionality to Your Classes.
Exploring Real-time apps with ColdFusion and Blaze DS / Live Cycle Data Services ES Dan Blackman
Chapter 8 More Object Concepts
An Object-Oriented Approach to Programming Logic and Design
Christopher M. Pascucci.NET Programming: Basic ASPX Scripting & HTML Embedment.
Software Architecture for ColdFusion Developers Unit 4: Application Events and Global Variables.
Introduction to Object Oriented Programming. Object Oriented Programming Technique used to develop programs revolving around the real world entities In.
Using JavaBeans and Custom Tags in JSP Lesson 3B / Slide 1 of 37 J2EE Web Components Pre-assessment Questions 1.The _____________ attribute of a JSP page.
Data File Access API : Under the Hood Simon Horwith CTO Etrilogy Ltd.
Introduction to JavaServer Pages (JSP) Slides from Dr. Mark Llewellyn.
Introduction to ASP.NET MVC Information for this presentation was taken from Pluralsight Building Applications with ASP.NET MVC 4.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
ColdFusion 9 and Flex 4: Application Development Ryan Stewart Platform Evangelist, Adobe Systems
Lesson 12: Working with Code-editing Features Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver.
Chapter 8 Cookies And Security JavaScript, Third Edition.
JavaScript, Fourth Edition
1 ® Copyright 2009 Adobe Systems Incorporated. All rights reserved. Adobe confidential. 1 Building Portlets with ColdFusion Pete Freitag Foundeo, Inc.
1 Maryland ColdFusion User Group Session Management December 2001 Michael Schuler
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Chapter 18 Object Database Management Systems. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Motivation for object.
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, 4 th Edition.
An Object-Oriented Approach to Programming Logic and Design Chapter 3 Using Methods and Parameters.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
CF101: Welcome to ColdFusion Simon Horwith CTO, Etrilogy Ltd.
CSE 341, S. Tanimoto Java brief review - 1 Java Brief Review Java’s strengths Object-oriented terminology Inheritance Interfaces An example with inheritance.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
XP Tutorial 8 Adding Interactivity with ActionScript.
Introduction to c++ programming - object oriented programming concepts - Structured Vs OOP. Classes and objects - class definition - Objects - class scope.
Lecture Note 8: ASP Including Files and The Global.asa file.
CFCs in Practice Raymond Camden Senior Developer, Mindseye Technologies.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 26 - Java Object-Based Programming Outline 26.1Introduction.
CFUNITED – The premier ColdFusion conference ColdFusion Components Ajay Sathuluri Based on presentation.
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 9 Java Fundamentals Objects/ClassesMethods Mon.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
Applets, Images, and Audio Chapter 14 CSCI CSCI 1302 – Applets, Images, and Audio2 Outline Introduction The Applet Class –The init Method –The start.
Introduction to Object-Oriented Programming Lesson 2.
Chapter 18 Object Database Management Systems. Outline Motivation for object database management Object-oriented principles Architectures for object database.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
Overview of Previous Lesson(s) Over View  ASP is a technology that enables scripts in web pages to be executed by an Internet server.  ASP.NET is a.
Introduction  “M” “V” “C” stands for “MODEL” “VIEW” “CONTROLLER”. ASP.NET MVC is an architecture to develop ASP.NET web applications in a different manner.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
 Description of Inheritance  Base Class Object  Subclass, Subtype, and Substitutability  Forms of Inheritance  Modifiers and Inheritance  The Benefits.
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, Third Edition.
Server Object Server Object. The Server object represents a programmable interface to the HTTP service that provides a mechanism to administer and control.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
ArcGIS for Server Security: Advanced
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
19.10 Using Cookies A cookie is a piece of information that’s stored by a server in a text file on a client’s computer to maintain information about.
Object Oriented Analysis and Design
Objectives In this lesson you will learn about: Need for servlets
Chapter 6 Introducing Cascading Style Sheets
Presentation transcript:

2007 Adobe Systems Incorporated. All Rights Reserved. 1 Glenda Vigoreaux Adobe Certified Instructor roundpeg, Inc. Component Development in ColdFusion 8

2007 Adobe Systems Incorporated. All Rights Reserved. 2  Creating ColdFusion Components (CFCs)  ColdFusion Component Invocation  Instantiating ColdFusion Components  Persisting ColdFusion Components  CFCs and Object-Oriented Programming  Encapsulation  Inheritance and the Super keyword  Introspection  Component Access Control  Questions and Answers Session Outline

2007 Adobe Systems Incorporated. All Rights Reserved. 3  Allow you to group ColdFusion statements into user-defined functions that perform a logical unit of work  Object-based building block for building applications  Logically group data and functionality  CFCs can perform many related actions, defined in multiple methods  CFCs are more structured making the code easy to follow and troubleshoot Reviewing ColdFusion Components

2007 Adobe Systems Incorporated. All Rights Reserved. 4  Provide an ideal mechanism for code reuse  Can be invoked without including the code on the page  Can be called as web services by other clients using any platform  Are self-documenting through introspection  Can persist between page requests  Can be secured using roles-based security Benefits of ColdFusion Components

2007 Adobe Systems Incorporated. All Rights Reserved. 5 SELECT * FROM Services ORDER BY #arguments.sort# Creating ColdFusion Components

2007 Adobe Systems Incorporated. All Rights Reserved. 6  Creating a ColdFusion Component Walkthrough 1

2007 Adobe Systems Incorporated. All Rights Reserved. 7 <cfinvoke component="marketing.services" method="getServices" returnvariable="qServices"> ColdFusion Component Invocation

2007 Adobe Systems Incorporated. All Rights Reserved. 8  Invoking a ColdFusion Component Walkthrough 2

2007 Adobe Systems Incorporated. All Rights Reserved. 9  CFCs can be instantiated as objects and then invoked using object style syntax  Object type invocation is essential for CFCs with persistent properties and CFCs used multiple times  Using to create an instance  Using CreateObject() to instantiate the same component Instantiating ColdFusion Components

2007 Adobe Systems Incorporated. All Rights Reserved. 10  Use the tag  The CFC instance name is enclosed in pound signs (#) in the component attribute <cfinvoke component="#cfcServices#" method="getServices" returnvariable="qServices" sort="serv_id"/> Invoking Methods on a CFC instance

2007 Adobe Systems Incorporated. All Rights Reserved. 11  Object methods may also be invoked inline, using object.method() syntax Invoking Methods on a CFC instance

2007 Adobe Systems Incorporated. All Rights Reserved. 12  Invoking Components as Objects Walkthrough 3

2007 Adobe Systems Incorporated. All Rights Reserved. 13  CFCs may be instantiated into persistent scopes  Place components into the following scopes:  Session  Application Persisting ColdFusion Components

2007 Adobe Systems Incorporated. All Rights Reserved. 14  Persisting CFC Instances Walkthrough 4

2007 Adobe Systems Incorporated. All Rights Reserved. 15  ColdFusion is not object oriented  CFCs deliver some of the power and capabilities of objects  Some of the object-oriented features of CFCs include encapsulation, inheritance, and introspection CFCs and Object-Oriented Programming

2007 Adobe Systems Incorporated. All Rights Reserved. 16  The technique of incorporating both code and data into one object such as a CFC is known as Encapsulation  Encapsulation lets users pass data to and get a result from the CFC without having to understand the underlying code  Data passed to the CFC can be validated  CFCs can enforce data types, check for required parameters, and optionally assign default values Encapsulation

2007 Adobe Systems Incorporated. All Rights Reserved. 17  Allows a CFC to extend another CFC  Original component is called “base” or “parent” component  Component that extends another component is called the “child” component  Child component inherits the methods and properties from the parent component  Inheritance lets you build multiple specific components without rewriting the code for the basic building blocks of the components Inheritance

2007 Adobe Systems Incorporated. All Rights Reserved. 18  Child component uses the extends attribute to specify the parent component The Extends Attribute

2007 Adobe Systems Incorporated. All Rights Reserved. 19  Useful when a child and parent share the same method  Child component can use the super scope to reference the parent component methods Super keyword Services.cfc [Parent] [Function CFML code] OtherServices.cfc [Child]

2007 Adobe Systems Incorporated. All Rights Reserved. 20  CFCs support introspection because they can provide information about themselves  You can see information about the component by:  Displaying a component page directly in an HTML browser  Inspecting it in the Dreamweaver component browser  The information displayed includes the component’s path, property, methods, and additional information specified using special attributes and tags Introspection

2007 Adobe Systems Incorporated. All Rights Reserved. 21  Extending Components Walkthrough 5

2007 Adobe Systems Incorporated. All Rights Reserved. 22  The access attribute of the tag determines how and where a method can be invoked  Method access can also be restricted based on the role of the user that is logged in  Use the tag to establish the roles Component Access Control

2007 Adobe Systems Incorporated. All Rights Reserved. 23  Private This function can only be called by other functions within the same component and any components that extend the component in which this function is defined Access Types and Description  Package This function can be called by any other component within the same directory in addition to the conditions for access=”private”  Public This function can be called by any ColdFusion page or component method located on the same server as this function  Remote This function can be called by any ColdFusion page or component method located on any server, or by any client through a URL, form submission, Flash Remoting or web service

2007 Adobe Systems Incorporated. All Rights Reserved. 24  Experimenting with Access Control Walkthrough 6

2007 Adobe Systems Incorporated. All Rights Reserved. 25  CFCs framework force developers to work in a more systematic way  Code inside a CFC is generally easy to follow and troubleshoot  Components help developers establish advanced development techniques by allowing for a higher degree of reuse, encapsulation, and security  Components can persist by placing them in the session or application scope  Some of the object-oriented features of CFCs include encapsulation, inheritance, and introspection  Component access can be restricted by using the access and roles attributes of the tag Summary

2007 Adobe Systems Incorporated. All Rights Reserved. 26  Questions  Thank you for attending this session Questions and Answers