Hybrid View
-
16 Nov 2010 5:00 PM #1
Differences between Sencha Touch and Ext JS
Differences between Sencha Touch and Ext JS
Hello,
I posted a previous question about Sencha Touch vs. Ext JS and received some good feedback. However, I continue to be confused about the two different platforms.
1. Can Ext JS code be run on mobile devices and will all widgest work (I assume the answer is YES)?
2. Is Sencha Touch optimized for mobile devices, where Ext JS may run more slowly (I assume the answer is YES)?
3. Why isn't Sencha Touch based on exactly the same APIs as Ext JS, where applicable? For example, I'm looking at the Ext.data package on both Sencha Touch and Ext JS. I would assume a package at this low level would be exactly the same on Touch as it is on Ext JS, but they differ quite considerably. Specifically, the "Store" class is a top-level class in Ext JS, but it is a subclass of AbstractStore on the Touch platform. Ext JS doesn't even define AbstractStore (which means it does not provide a TreeStore subclass, for example, like Touch does). Also, on Touch the Store caches "Model" objects, whereas on Ext JS the Store caches "Record" objects. A completely different structure. My basic question is, why the differences (this, and other major differences)? I would have assumed, and preferred, a consistent set of APIs...
Thank You,
- Eric
-
16 Nov 2010 5:09 PM #2
4. We are considering using Sencha to develop mobile apps, and we really like the Ext GWT feature set (allowing code written in pure Java). Will Ext GWT perform just as well on mobile platforms as Sencha Touch will? What do you get with Sencha Touch (UI/feature wise) that you don't get from Ext GWT?
-
16 Nov 2010 5:30 PM #3
1) No, not everything will work. For example the grid relies on having a scrollable div, which mobile browsers don't support. Also think about things like menus, tooltips.
2) It's not really to do with speed, Touch is just optimized to take advantage of the features mobile browsers offer, as well as widgets to cater for the smaller screen real estate.
3) The data package in Touch will be used in Ext 4, which is why there's a break between the two. The idea is to share as much code as possible between the libs.
4) Again, you will miss the mobile experience if you use GXT/Ext, you'll be trying to use desktop style widgets for mobile devices. In the end, the users won't get the same ease of use Touch provides for these devices.Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
16 Nov 2010 5:54 PM #4
Thank you for the clarification.
1. Ok, so what happens when you try to run a Ext JS app on mobile? I assume it might display, but won't function properly?
3. Ok, so it sounds like Ext JS is "based" more on Sencha Touch, than the reverse (which is what I assumed). It follows that Sencha Touch generally defines the more 'base' APIs, and Ext JS is a richer desktop experience? When will Ext JS 4 be released, and what other packages will eventually be shared between the two?
4. Ok, so Are there plans for a Java/GWT version of Sencha Touch? I hope so, because I see much value in being able to code in pure Java. We rely on being able to code in Java, use our preferred Java IDE, and take advantage of the Java debugger, which is why I would very much like to base our mobile development on Java rather than JavaScript.
And along those same lines, does Google market GWT as mainly a "desktop" client environment? I'm wondering if Google is planning on a "mobile" version of GWT?
- Eric
-
19 Nov 2010 1:19 PM #5
I can't speak to any of this, but on 3. no Extjs has been around, and gone through 3 major code revisions, and tons of minor revisions, all before jtouch, now "sencha touch" was brought into the fold. What Evan said was the data package in touch will be used in Extjs4, so there is starting to be the sharing of code, and libraries between the 2. Just a warning, that ExtJS is not based on touch.
-
24 Nov 2010 3:23 PM #6Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
At the risk of repeating what Evan has already said, it breaks down like this:
There is a common Sencha Platform which contains all of the logic packages (data, layout, utility classes etc). Ext JS 4 and Sencha Touch are both simply view layers on top of Platform. Sencha Touch is optimized for mobile touch devices, Ext JS 4 is optimized for desktop browsers.
There is no attempt made to made ST work well on desktop or EXT JS 4 work well on mobile devices - these require fundamentally different approaches when it comes to UI.
Neither product is built on the other. The closest you could get is to say that Platform is the daddy, Touch and Ext JS 4 are the children and Ext JS 3 is the mad old uncle who inspired the whole thing.Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
Similar Threads
-
Is Sencha working on native wrappers to package Sencha Touch apps for app stores?
By olin in forum Sencha Touch 1.x: DiscussionReplies: 10Last Post: 20 Jan 2012, 10:10 AM -
Sencha Touch/EXT JS newbie
By gwthompson in forum Sencha Touch 1.x: DiscussionReplies: 5Last Post: 13 Sep 2011, 10:38 PM -
Could Ext Js and Sencha Touch work together?
By handitan in forum Sencha Touch 1.x: DiscussionReplies: 3Last Post: 26 Apr 2011, 1:25 PM -
Ext JS and Sencha Touch!
By mcamer in forum Sencha Touch 1.x: DiscussionReplies: 8Last Post: 1 Dec 2010, 10:19 AM


Reply With Quote