Ext.CFC isn’t about the greenhouse gasses, but instead abstracts out Ext components into the land of CFML:

“The Ext library is packed with tons of cool features, but like most CF programmers, I was initially interested in the Grid Panel. The Grid panel is implemented in ColdFusion 8 using the <cfgrid>, <cfgridcolumn>, and <cfgridrow> tags. Since I started this long before <cfgrid> was a thought, this code will obviously work in CF7.”

Currently the only abstraction is the Grid component, which allows you to do the following in CFML to create a rich grid:

JAVASCRIPT:

  1.  
  2. extobj = createobject(”component”,extcfc).init();
  3. extobj.initGrid(title=”messages”,path=’http://’&cgi.server_name&cgi.script_name&’?
  4. action=getData’,root=’messages’,id=’id’,defaultSortColumn=form.sort,defaultSortOrder=form.dir);
  5. extobj.initGridFooter();
  6. //extobj.setGridCol(header=’Subject’,width=200,name=’subject’,render="String.format(’{0}‘, value)”,detailRender=”String.format(’{0}
  7. {1}’, value, record.data[’body’])”);
  8. extobj.setGridCol(header=’Subject’,width=200,name=’subject’);
  9. extobj.setGridCol(header=’Sender’,width=150,name=’sender’);
  10. extobj.setGridCol(header=’Sent’,width=150,name=’datetime’);
  11.  

which creates:

Ah, now I can feel a little less guilty about how little we post on Coldfusion…. at least until Rey joined the fun!

Source: Ajaxian
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/198141321/extcfc-easing-integration-with-ext-and-adobe-coldfusion

Comments are closed.



Site Navigation