Programming ColdFusion MX, 2nd Edition by Rob Brooks-Bilson This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated June 1, 2007. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: (13) 1st code sample, following 2nd paragraph; this should be: [33] Last code block; should be: {136} 7th paragraph; Example reads: You can also initialize an array using the cfparm tag, as in the following: (167) first block of code; should read: (206) 3/4 down the page, the password input tag; The password input tag has an extraneous quote before the maxlength attribute: should be: {217} Half way down example 8-6, in the CFLOGIN tag; should read: (note insertion of dot before example.com) (377) 1st paragraph; 'Next, we check to see if the directory list operation returned exactly two objects. This is done using a cfif statement to evaluate the value stored in the RecordCount query column. If the vlaue of RecordCount is two, we know that the directory is empty,....' it should say: "Next, we check to see if the directory list operation returned zero results. This is done using a cfif statement to evaluate the value stored in the RecordCount query column. If the vlaue of RecordCount is zero, we know that the directory is empty..." [527] Top of page, 3rd line of code.; In the book, on page 527, line 3, it reads: xaxistype="scale" yaxistype="scale" sortxaxis="No" both instances of the word "scale" should be "category". As it is written, ColdFusion throws an error: For input string: "Greg" The downloadable source codes for this book do however use the correct syntax. {550} The entry for alnum should read: [:alnum:] Matches any letter or number regardless of the case used. Using alnum is the same as specifying [A-Za-z0-9]. Using \w produces a similar result, but also includes underscores. {552} [^[digit:]] is missing a colon (under \D). It should look like this: [^[:digit:]] [660] 3rd paragraph; You say that you can include code that makes up a method body within a cffunction and then give an example where the included method body uses cfargument and cfreturn. This does not work in ColdFusion as any code included with cfinclude must be valid CFML in its own right. The example that you give causes a ColdFusion error stating that cfargument and cfreturn must be used within a cffunction. The example should look like this: This gets saved as _methodGetEmployee.cfm (the example also inadvertantly leaves off the file extension): SELECT * FROM employeeDirectory WHERE ID=#arguments.id# AUTHOR: Note that I do not advocate coding your CFCs like this, but it is a valid option if long CFCs are a problem for you. (665) 2nd code block; should be (697) 9th paragraph; It says: XmlChildern it should say: XmlChildren (900) 4th paragraph; It says: cfhttp.FileContent it should say cfhttp.fileContent {1049} 3rd; Text on page 1049 reads it should read: