O'Reilly logo

Railo 3 Beginner’s Guide by Mark Drew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - creating our own CFML tag

One of the Railo team members, Todd Rafferty, tweeted the following a while ago:

Time for action - creating our own CFML tag

I thought he had a good point there, so let's take this example and create the functionality for him. Heck, we could even propose our enhanced tag to be added into the Railo core!

  1. Open up your editor and write the following code:
    <cfcomponent name="abort" output="false"> <cfset this.metadata.attributetype="fixed" /> <cfset this.metadata.attributes = { showerror: {required:false, type: "string"} , dump: {required:false, type: "any"} } /> <cffunction name="init" output="false" returntype="void" hint="invoked after tag is constructed"> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required