Skip to content

#cfunited Notes – “CF9 and AIR: Developing Offline Applications”

The same 3 ways (WebService, HTTPService and RemoteObject) to connect to CF from AIR that existed in CF8 will continue in 9.

New things in Centaur

Fast Remoting

  • made several times faster
  • direct data translation between ActionScript and CF types
  • circular ref bug is fixed
  • no code changes required
  • support the old style remoting for backwards compatibility

ActionSript proxies to access CF tags

  • access CF tags from within MXML
  • chart, image, document, mail, pdf, pop
  • no server code (cfm/cfc) required
  • enable access to services in CFAdmin (username/IP)
  • include “services.swc” in AIR app
  • use <cf:Config…> to connect to the server

? offline access to proxy?

No the processing engine is the CF server so this part will not work offline.

Built-in online support

  • build offline apps without SQL mess and conflict handling
  • CF-AIR persistent framework for SQLite DB on client side
  • CF keeps track of all updates to local DB and syncs the server
  • session.commit() will send all changes that have happened in the session since the last commit
  • conflict handling is completely configurable based on operation (insert, update, delete). you get back the original object and the new object and can decide which should be saved where.

Other Enhancements

remotingFetch

  • cfProperty attribute
  • if false, the value is not send on the wire for flash remoting
  • true by default

resetTrackingChanges

  • resets all tracking data in CF offline store

ignoreLazyLoad

  • on commit, need entire tree

askjayvir.blogspot.com
rakshith.net

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*