An Architect's View

CFML, Clojure, Software Design, Frameworks and more...

An Architect's View

FW/1 2.0 Alpha Available

August 6, 2011 ·

I just declared the official "2.0 Alpha" of Framework One. Although there are a number of minor issues still open against this release, all the major new features are in place and ready for extensive public testing.

The main new features (in no particular order) are:

  • custom URL routes with parameter substitution are supported, along with HTTP method restrictions and wildcard routes
  • setLayout() to override layout conventions
  • view() can be called from a controller, as a way to render email or documents for PDF delivery etc
  • controller/service execution can be short-circuited, providing more control over the request lifecycle
  • populate() and autowiring now support property-based injection as well as setter-based injection
  • additional lifecycle hooks for global before() / after() and pre-rendering setupView()
  • complete rewrite of the code to use cfscript - for Adobe ColdFusion 9.0.1 and Railo 3.2.2 or later

In particular, note the last bullet - if you are on earlier CFML engines, you will have to stick with FW/1 1.2 (there will be a 1.3 maintenance release). The mix of tags and script was driving me crazy and I didn't want to add all this new functionality with the code as it is!

Tags: coldfusion · fw1 · oss · railo

6 responses

  • 1 John C. Bland II // Aug 7, 2011 at 12:38 AM

    Wow, interesting move to go full cfscript. Why not do it all in tags to support older and newer machines? #curious
  • 2 Sean Corfield // Aug 7, 2011 at 1:46 AM

    Because I really can't bear writing CFCs in tags.
  • 3 John C. Bland II // Aug 7, 2011 at 8:50 AM

  • 4 Manithan // Aug 7, 2011 at 6:41 PM

    Sean great work.
    i remember you mentioned that in 2.0 there would be a option not to extend the framework cfc from Application.cfc, is that still yet to be implemented 2.0 ?
  • 5 Sean Corfield // Aug 13, 2011 at 10:01 PM

    @Manithan, it's still on the roadmap but I have not seen much demand for that feature lately so I haven't considered it a priority. With the heavy reliance on the Application.cfc lifecycle and it's assumption that it can share variables scope with Application.cfc, it's harder to solve than it might look!
  • 6 Clint Willard // Sep 2, 2011 at 11:19 AM

    Thank you so so very much for using scripting in cfc's. Thank you! I'm so tired of seeing tags in components, ready to do some actual programming. Love the FW/1!