Ben Forta Director of Platform Evangelism Adobe Systems, Inc.
Transcription
Ben Forta Director of Platform Evangelism Adobe Systems, Inc.
Ben Forta Director of Platform Evangelism Adobe Systems, Inc. 1 ColdFusion 8 Is All About ... Developer Productivity Integration Improved Management and Administration 2007 Adobe Systems Incorporated. All Rights Reserved. 2 Developer Productivity Developer Productivity 2007 Adobe Systems Incorporated. All Rights Reserved. 3 Image Manipulation New <CFIMAGE> tag used to perform image manipulation High level ACTIONs Over 50 new Image functions: BORDER, CAPTCHA, CONVERT, INFO, READ, RESIZE, ROTATE, WRITE, WRITETOBROWSER E.g. ImageDrawRect(), ImageNew(), ImageOverlay(), ImageSetDrawingColor() Supporting functions: IsImage() function ImageGetBlob() returns an image as a blob suitable for storing in a database GetReadableImageFormats() and GetWriteableImageFormats() 2007 Adobe Systems Incorporated. All Rights Reserved. 4 AJAX Support Simplify CFC invocation from AJAX JSON to simplify data consumption New JSON functions : SerializeJSON(), DeSerializeJSON(), IsJSON() AJAX Wizard 2007 Adobe Systems Incorporated. All Rights Reserved. AJAX UI Components Create a library of rich controls you can use in your html pages Using DHTML and AJAX technologies Cross browser support Extensible and skinable Sample Controls Rich Grid using <CFGRID> Rich Tree using <CFTREE> Able to make calls back to the server to get tree children Dual Select Lists using <CFSELECT> Support items such paging, sorting, and filtering in the grid Populate one select list based on the selection of another Auto-Suggest combo-box using <CFSELECT> Will generate list of suggestions, based on what the user has entered so far. Support a drop down of options, or auto-complete. Calendars and Date Pickers 2007 Adobe Systems Incorporated. All Rights Reserved. Improved File I/O New functions to simplify file i/o operations FileClose(), FileCopy(), FileDelete(), FileIsEOF(), FileMove(), FileOpen(), FileRead(), FileReadBinary(), FileReadLine(), FileSetAccessMode(), FileSetAttribute(), FileSetLastModified(), FileWrite(), FileWriteLine() <cfloop> can now loop through files incrementally: <cfloop file=“” index=“line” …> <cfloop file=“” index=“chars” characters=“100” …> 2007 Adobe Systems Incorporated. All Rights Reserved. 7 ZIP File Support <CFZIP> for ZIP and JAR file manipulation DELETE LIST READ READBINARY UNZIP ZIP 2007 Adobe Systems Incorporated. All Rights Reserved. 8 Thread Manipulation <CFTHREAD> can be used to create and manage threads RUN, JOIN, SLEEP, TERMINATE Thread exposed metadata ELAPSEDTIME, ERROR, NAME, OUTPUT, PRIORITY, STARTTIME, STATUS 2007 Adobe Systems Incorporated. All Rights Reserved. 9 <CFDOCUMENT> Enhancements Support for bookmarks and bookmark hierarchies, and more TOTALPAGECOUNT and CURRENTPAGENUMBER can now be used within CFML expressions Support for section page counts 2007 Adobe Systems Incorporated. All Rights Reserved. 10 Reporting Enhancements Templates Stylesheets Design your corporate template to be used from within the wizards or to be applied to an existing report (design-time templates) Using CSS define the colors and font styles of your report at runtime (via the <CFREPORT> tag Conditional Formatting Format data depending on its value (or any other criteria) Multiple Bands for the same layout area using Print When Expressions, conditionally include different header or detail bands in your report Output to HTML and XML A single reporting template for printing and web viewing 2007 Adobe Systems Incorporated. All Rights Reserved. Server Side Printing <CFPRINT> tag prints PDF files to a specified printer Can send content to local or network printers (list of available printers is displayed in CF Admin) Provides control over size, rotation, fidelity, color, number of copies, as well as printer specific options 2007 Adobe Systems Incorporated. All Rights Reserved. 12 CFC Interfaces Create object interface definitions <CFINTERFACE> used in a CFC which can only contain <CFFUNCTION> and <CFARGUMENT> tags IsInstanceOf() can be used to check if an object is an instance of a specific interface onMissingMethod() handles any method call which do not exist 2007 Adobe Systems Incorporated. All Rights Reserved. 13 Database Enhancements New database drivers Adds support for SQL Server 2005, Oracle 10g, Sybase ASE15, MySQL 4 & 5, PostgreSQL 8, and more Additional database driver level logging Nested <CFTRANSACTION> tags New <CFDBINFO> tag, used to obtain: Tables in a data source Table columns Version information Index, PK, and FK details Stored procedure details 2007 Adobe Systems Incorporated. All Rights Reserved. 14 Debugger New Eclipse based ColdFusion Debugger Step through debugging Access to variables Breakpoints Local and remote debugging Supports multiple concurrent debug sessions Debug sessions can be initiated outside of Eclipse 2007 Adobe Systems Incorporated. All Rights Reserved. 15 Attribute Collections Attribute Collections can be used to simplify working with tag attributes Before: <CFQUERY NAME=“myQuery” DATASOURCE=“myDSN” CACHEDWITHIN=“#CreateTimeSpan(0,1,0,0)#”> … </CFQUERY> After: <CFSET args=StructNew()> <CFSET args.name=“myQuery”> <CFSET args.datasource=“myDSN”> <CFSET args.cachedwithin=CreateTimeSpan(0,1,0,0)> <CFQUERY ATTRIBUTECOLLECTION=“#args#”> … </CFQUERY> 2007 Adobe Systems Incorporated. All Rights Reserved. 16 Implicit Array Creation Implicitly create arrays (single dimensional) Before: <CFSET myArray=ArrayNew(1)> <CFSET ArrayAppend(myArray, “Adam”)> <CFSET ArrayAppend(myArray, “Ben”)> <CFSET ArrayAppend(myArray, “Tim”)> After: <CFSET myArray=[“Adam”,“Ben”,“Tim”]> 2007 Adobe Systems Incorporated. All Rights Reserved. 17 Implicit Structure Creation Implicitly create structures Before: <CFSET myStruct=StructNew()> <CFSET myStruct.product=“ColdFusion”> <CFSET myStruct.version=8> After: <CFSET myStruct={product=“ColdFusion”, version=8}> 2007 Adobe Systems Incorporated. All Rights Reserved. 18 Use JavaScript Operators In all CFML expressions: ++, --, %, +=, -=, *=, /=, %=, &&, ||, ! In <CFSCRIPT> ==, !=, <, <=, >, >= 2007 Adobe Systems Incorporated. All Rights Reserved. 19 Miscellaneous <CFSTOREDPROC> now supports caching (CACHEDWITHIN and CACHEDAFTER) Query caching now works when using <CFQUERYPARAM> <CFFTP> now supports SFTP Built-in FIPS compliant encryption with CFENCRYPT() CFCs now serialize properly (will replicate correctly) 2007 Adobe Systems Incorporated. All Rights Reserved. 20 Performance Gains Significant performance gains! 5-8x faster object creation (<CFOBJECT> and CreateObject()) Nearly all aspects of the server optimized File / Directory Operations Lots of built-in functions … much more! 2007 Adobe Systems Incorporated. All Rights Reserved. ColdFusion 8 Is All About ... Developer Productivity Integration Improved Management and Administration 2007 Adobe Systems Incorporated. All Rights Reserved. 22 Integration Integration 2007 Adobe Systems Incorporated. All Rights Reserved. 23 .NET Integration <CFOBJECT> and CreateObject() now support the invocation of .NET assemblies Local or remote Remote requires a .NET proxy No code changes required to .NET assemblies Automatic conversions of common data types Arrays, Structures, etc… .NET DataTables Æ ColdFusion Queries 2007 Adobe Systems Incorporated. All Rights Reserved. 24 Microsoft Exchange Integration Microsoft Exchange client tags (not Windows specific) Supports Mail, Calendar, Contact, and Task <CFEXCHANGECALENDAR> (includes supports recurring events and responses) <CFEXCHANGEMAIL> (only get and delete are supported) <CFEXCHANGECONTACT> <CFEXCHANGETASK> Full control over connections and filters <CFEXCHANGECONNECTION> opens a new connection Access to subfolders <CFEXCHANGEFILTER> used to specify GET filters 2007 Adobe Systems Incorporated. All Rights Reserved. 25 Microsoft Exchange Integration Open connection <CFEXCHANGECONNECTION server=“10.192.16.56” username=“testUser” password=“mypassword” connection=“con1”> Example: Get calendar events for a day <CFEXCHANGECALENDAR action=“get” connection=“con1” name=“calQuery”> <CFEXCHANGEFILTER name=“MaxRows” value=“10”> <CFEXCHANGEFILTER name=“StartTime” from=“7/23/2006 8:00 AM” to=“7/23/2006 6:00 PM”> </CFEXCHANGECALENDAR> 2007 Adobe Systems Incorporated. All Rights Reserved. Microsoft Exchange Integration Create Calendar Event <CFSCRIPT> event.StartTime = “7/18/2006 11:00 AM”; event.EndTime = “7/18/20006 11:30 AM”; event.Subject = “Discuss CFExchange”; event.Message = “Feature discussion and demo”; event.Location = “Room1”; event.RequiredAttendees = “[email protected]”; event.OptionalAttendees = “[email protected]”; event.RecurrenceType = “Daily”; event.RecurrenceEndDate = “7/24/2006 11:30 AM”; </CFSCRIPT> <CFEXCHANGECALENDAR ACTION=“CREATE” CONNECTION= “con1” EVENT=“#event#”> 2007 Adobe Systems Incorporated. All Rights Reserved. On-Demand Presentations <CFPRESENTATION> creates Acrobat Connect presentations on-the-fly, without needing access to a Connect server Output is SWF, complete with content tabs and audio controls and more Pages can be HTML, SWF, or any body content <CFPRESENTATIONSLIDE> defines specific slides within a presentation <CFPRESENTER> defines presenters (which can then be associated with specific slides) 2007 Adobe Systems Incorporated. All Rights Reserved. 28 LiveCycle Data Services Improved Data Services integration Single installer for both ColdFusion and LCDS Integrated installation improves performance, no need for RMI 2007 Adobe Systems Incorporated. All Rights Reserved. 29 Content Syndication <CFFEED> tag supports RSS and ATOM Consume feeds and return standard queries Simply generate RSS and ATOM content 2007 Adobe Systems Incorporated. All Rights Reserved. 30 PDF Manipulation <CFPDF> (and related tags) tag used to: Obtain PDF file metadata Extract pages from PDF files Merge PDF files Encrypt PDF files (Sign/Verify) Protect PDF files (Password) Create Page Thumbnail Flatten PDF files Execute DDX instruction sets 2007 Adobe Systems Incorporated. All Rights Reserved. <CFPDF> 31 PDF Form Manipulation <CFPDFFORM> tag used to: Populate PDF forms (AcroForms and XML based forms) with CF data Extract data from a filled PDF form <CFPDFFORMPARAM> used to pass values to a form <CFPDFSUBFORM> used to manipulate nested forms 2007 Adobe Systems Incorporated. All Rights Reserved. 32 ColdFusion 8 Is All About ... Developer Productivity Integration Improved Management and Administration 2007 Adobe Systems Incorporated. All Rights Reserved. 33 Improved Management and Administration Improved Management and Administration 2007 Adobe Systems Incorporated. All Rights Reserved. 34 Server Monitoring Peek into the ColdFusion “Black Box” Take server snapshots Save the server state for future reference Define alerts See activity, requests, usage details, load, and more Set threshold values for memory usage, average response time, thread count, and more. Sophisticated Flex based UI Can build own interface using Server Monitoring API 2007 Adobe Systems Incorporated. All Rights Reserved. 35 User Based Administration And RDS Define multiple user accounts and specify which ColdFusion Administrator pages each has access to Permissions extend to the Admin API User accounts can also be tied to RDS, associating users with specific sandboxes Users will only have access to whatever is exposed in their associated sandbox 2007 Adobe Systems Incorporated. All Rights Reserved. 36 Per Application Settings Support per application mappings Per application mappings Custom Tag paths 2007 Adobe Systems Incorporated. All Rights Reserved. 37 Platform Support OS Windows 2000, 2003, Vista 2000 Pro and XP (Development) Red Hat Linux AS & ES 3.0 & 4.0 SuSE Linux Enterprise 8, 9 TurboLinux J Solaris 8, 9, 10 AIX 5L v5.1, v5.2, v5.3 Apple Mac OS Apple Mac OS X on Intel JVM 64-bit Support (Solaris) JDK 1.5 & JDK 1.6 (default) Application Servers Macromedia JRun BEA WebLogic Server 7, 8.1, 9.0 Oracle AS 8i, 9i, 10g IBM WebSphere 4, 5.x, 6.0 JBoss Application Server 5.x Virtualization 2007 Adobe Systems Incorporated. All Rights Reserved. VMWare & MS Virtual Server ColdFusion 8, Available Now! Developer Productivity Integration Improved Management and Administration 2007 Adobe Systems Incorporated. All Rights Reserved. 39 2007 Adobe Systems Incorporated. All Rights Reserved. 40