View Full Version : Why doesn't Ext use the Connection class more?

21 Aug 2007, 10:33 AM

One of the many things I love about Ext is the concept of a Connection. This class makes a lot of sense. I have embraced this class and extended it for the different type of connections my application makes. One type of connection always passes certain Urls, another connection type does high level validation of the response.

Given the flexibility that the connection class provides, why doesn't Ext utilize it more? For example, it would be great if UpdateManager.update could be passed a connection. Instead, UpdateManager.update takes a url and params and then uses the "global connection" (Ext.Ajax) to make the request. Does anyone know why more of Ext's methods aren't parameterized by Ext.data.Connection as compared to url and params?

Thanks in advance,