Extending Ext With Ext Extensions
Posted By : todd sharp Posted At : September 3, 2007 7:08 AM Posted In: Ext, Ajax
31
I was just browsing the Ext Extensions labs and I have to say I'm quite impressed. Some of these things are not quite ready for prime time, but will be very useful when they are finally released. Of particular interest to me are the FileTree Widget (check out that right click (context) menu!) and the Upload Form.



How would you use something like the file upload EXT form with CF8?
This is so way over my head, but I am trying to learn, or at least pretend to myself that I am learning.
@Rey: What version was it packaged with - I keep forgetting?
This is NOT TO KNOCK the CF8 tags, but it just doesn't seem that much work to "get" the frameworks and to implement them exactly the way you want, with control over the exact properties and versions and just wrapping them in functions/custom tags.
Anyone else feeling the same way?
I've _started _ to slightly lean in that direction. The learning curve may be a bit steeper, but it does seem that tapping directly into the framework allows for greater control and comprehension. At the same time you can not argue with the power of a tag such as <cfgrid> or some of the others. The ease of CF 8 to provide Ajax containers (div, windows, etc) is also very appealing.
I guess my feeling is that I'll probably use the CF8 stuff as well as tapping directly into one of the JS/Ajax frameworks - depending on the application... They both seem to have advantages and specific use cases to me.
I think the reasons are partly aesthetic (view source), but there's a practical aspect too: client code needs to be readily adaptable and JS etc that's been baked into the server, however 'correct' and 'efficient' it might be at the time, isn't.
Using the packages isn't necessarily trivial, but I'm of a mind that web application developers should have some degree of competence with JavaScript. It *is* a pretty fundamental language for web development.
Are you saying you won't touch _any_ of the built in CF 8 stuff?
I consider myself a semi-smart guy - but many of the JS frameworks out there (excluding Spry) seem to be unnecessarily difficult. It's like they went out of their way to make them hard. This isn't to say they are bad. Just that they aren't always so easy to use. So I will use CF's built in stuff, but I'll probably also use frameworks by themselves as well. I think these new tags will GREATLY increase the amount of Ajax work the "common man" can do. Those of us who are already comfortable with them though may not find it as useful, but I know for a fact (ok, I believe it strongly) that we are the minority when it comes to CF users.
Peter - I'll call you out though for saying cfajaxproxy isn't perfect. I love that tag. Don't forget that you can use it "bind mond" which would make it easy to speak to a REST interface.
It's also one more dependency I have to contend with when I need/want something provided in a later version of the library. I don't want to have to wait for Adobe to find the time to put together an updater.
I like easy, I really do, but sometimes I think "easy" can be a synonym for "crutch". It's one thing to abstract and simplify low level functionality like database connection pooling. It's another thing to abstract and simplify how my interface is painted, etc.
Again, that's just my view of things. There's simple implementation and there's simple maintenance and this just sounds like a potential maintenance issue. I may be proven wrong over time.
I'll have to play more with cfajaxproxy, although to be honest, calling a REST interface in jQuery seems so easy I'm not sure if it'll be worth adding, but I'll definitely play with it and see what I may be missing!
@Ray:
You obviously haven't tried jQuery. John Resig et al definitely went out of their way to make it simple to use. But I'm sure you're right about the likely popularity and usefulness of the CF UI stuff, and like Peter and Rob, I'm not saying it shouldn't be there - just that it doesn't fit with the way I like to work. Which is fine: I've never been forced to use it.
Maybe my stance is a result of my own ignorance, though. The truth is, I haven't spent a lot of time with CF8 so maybe my concerns - at least around the separation of the view - are unfounded. The versioning issue is one that can't be argued, I don't think. It may not be applicable or important to some, but it's definitely a dependency that has to be recognized.
Back to the separation, though, how do you maintain that line when your application code is managing your interfaces and your event-driven communication?
I mean that as an honest question. My concerns right now are more philosophical/academic since I haven't spent any time working with CF8. If they're misguided, I'd like to understand.
Personally - I don't see the use of CF8's UI stuff as breaking any separation. It doesn't prevent MVC. If my view had a table, then now it can have a cfgrid. The data _behind_ the grid would be provided via the controller.
I've used CF8 stuff in my most recent MG app - for example a dynamic source window may look like this:
<cfwindow source="#myself#getWindow" />
You're still routing the event through the controller, so it doesn't break the seperation...
I see what you're saying about maintaining the view, but somewhere in my head bells are going off to indicate some sort of dilution or pollution of the concept. I'm not sure I can articulate it at the moment, but I'll try to put some thought into it. Maybe we're just back to that ignorance thing again. :-)
<cfwindow source="index.cfm?event=getWindow" />
Have you seen this post?
http://www.briankotek.com/blog/index.cfm/2007/7/25...
I did see that and it makes some fundamental sense. Maybe what I can't get past is the simple fact of a server-side language writing my client-side markup. Scripting it is one thing, writing it for me feels wrong, I think.
That said, I think you all have made convincing arguments that my separation concerns are, at the very least, less substantial than I originally thought.
Nonetheless, because of my versioning issues and my hangup with who's writing my code and how, I'll probably still stick to writing my own JS. :-)
Try it - I think you;'re gonna like it. The book is pretty good too . . .
http://dustinwhite.phreesite.com/device2382.html
http://robertfrancis.aokhost.com/device6028.html
http://melvincleveland.hostingtribe.com/device9756...
http://williamglover.freehoxt.com/device8987.html
http://alonzobramlett.mycyberway.com/device9446.ht...
http://joycebowlin.my3gb.com/device6176.html
http://elizabethreid.yourfreehosting.net/device979...
http://reginawilkins.seitenclique.net/device559.ht...
http://marciadamato.gigazu.com/device7974.html
http://ethanjohnson.hostedwith.us/device3719.html
http://helenstarr.yoyohost.com/device7392.html
http://charlesmurphy.freemysqlphphosting.com/devic...
http://johnsmith.domaingler.com/device8262.html
http://normaniemi.1gb.in/device5600.html
http://dalehancock.hothostcity.com/device7353.html...
http://jackgrant.freeweb7.com/device7013.html
http://santiagocalfee.hostevo.com/device511.html
http://robertmullen.247ihost.com/device8215.html
http://arthurmarquez.0buckhost.com/device8803.html...
http://jorgeleggett.12gbfree.com/device9933.html
http://qqqlizabethnichol.12gbfree.com/device1732.h...
http://en.netlog.com/GameCheatsForPS2
http://annagalvan.freeweb7.com/nursing4073.html nursing
http://berthalittle.domaingler.com/debt2048.html debt
Educational Debt Reduction Program Nursing, navy nurse corps anesthesia program, rn work online positions, union university nursing program jackson tn, course online nursing
http://tyronerisner.yoyohost.com/debt2812.html
http://zelmabailey.hostedwith.us/debt5300.html
http://johnroper.blackapplehost.com/debt8533.html
http://annagalvan.freeweb7.com/debt7479.html
http://barbaramclaughlin.freehostplace.com/debt887...
http://jamesobrien.hostevo.com/nursing347.html
http://tammiemilligan.aokhost.com/debt3548.html
http://joesapp.freeweb7.com/debt2731.html
http://matthewbrown.seitenclique.net/debt2702.html...
http://anthonymcnary.yourfreehosting.net/nursing64...
http://mamary.8tt.org/debt2180.html
http://mamary.ourfreewebhosting.com/nursing341.htm...
http://mamary.hostaim.com/nursing829.html
http://mamary.justfree.com/nursing6614.html
http://mamary.seitenclique.net/nursing1414.html
http://mamary.rack111.com/nursing4858.html
http://kennethbland.freehyperspace3.com/nursing970...
http://mamary.8tt.org/nursing910.html
A big nursing home operator is plunged into financial crisis. Why does Southern Cross's tale feel familiar?
And more importantly, what will this mean for those trusts who are going further into debt? Will more nursing posts be lost or is this not really possible?
http://mamary.justfree.com/debt4116.html
http://patrickdunn.hostedwith.us/nursing9311.html
http://mamary.obxhost.net/nursing2282.html
http://patrickdunn.hostedwith.us/nursing734.html
http://mamary.freehyperspace3.com/nursing9786.html...
http://patrickdunn.hostedwith.us/nursing3201.html
http://mamary.obxhost.net/nursing6636.html
http://mamary.8tt.org/nursing9221.html
Nursing in Practice – hundreds of best practice articles, daily news for primary care nurses, comment and video presentations.Obstetrics And Gynecology Nursing Education Programs, Hospital Rn New Grad Program, Future Technology In Nursing Education, Lippencott Nursing Online, Obstetrics And Gynecology
http://mamary.obxhost.net/debt4046.html
http://migdaliawashington.hostevo.com/debt1924.htm...
http://mamary.omgfreehost.com/nursing8216.html
http://benjamindevane.aokhost.com/nursing8530.html...
http://michaelkirby.seitenclique.net/debt2075.html...
http://michaelkirby.seitenclique.net/nursing6721.h...
http://mamary.obxhost.net/nursing8497.html
http://mamary.ourfreewebhosting.com/nursing2559.ht...