I think ColdFusion 9 should be able to produce AIR applications.
Oh wait, I’m should probably preference this I love ColdFusion 8, and I think it’s great and the CF team deserves a rest. I do, I do, and they do. I’ve been holding on to this idea ever since the Philadelphia stop of the AIR Bus tour, and if I don’t get it out unfinished, I’ll never get it out there.
Okay, so back to ColdFusion should be able to publish AIR applications.
ColdFusion is cursorily related to so many of the technologies that surround AIR. ColdFusion provides an easy webservice infrastructure you need to run remote Flex applications. These remote Flex applications can just as easily be AIR as Flex. ColdFusion 8 can now generate rich controlled HTML and JavaScript driven applications. Just like the kind of applications that can be packaged as AIR applications.
But the direct linkage between ColdFusion and AIR is missing. Its can help but only as an unglamorous background player. It shouldn’t be, especially when it can produce so much of what AIR is made from.
I can envision setting something in Application.cfc like This.publishAsAir = TRUE. When the application url is browsed the ColdFusion server compiles all of the CF JavaScript libraries that are used in the application, and adds every page that is specified in another application.cfc setting, and builds it as an AIR file.
- How would this work with applications that aren’t page based but url string based (like framework based applicaitons)? I have no idea.
- How would this deal with pages driven by database results? I have no idea.
- How would it hande all of the backend activity of tags like <cfmail> or <cfldap>? I have no idea.
- Would this be really hard to do? Probably, but have you seen what they’ve done with CF 8?
I’m thinking maybe there would be some way of limiting what gets created as the AIR components. Maybe you would have to wrap all of the application parts you wanted to use in a <cfair> tag, and it would prevent the calling of certain tags within it? I have no idea.
So am I nuts, or are the obstacles too high with this?