PDA

View Full Version : YUI and Ext JS



vincent_os
12 Mar 2008, 5:15 AM
Hi,
I am little confused as to where Ext stands in relation to YUI. As i understand it, EXT had its origins as an extension to YUI. Now it looks like it has evolved away from its YUI origins? Where I am coming form is as follows: I am evaluating YUI and Ext. Ext looks more polished as a UI and the sample apps are a great starting point so that I could hit the ground running. However, I get the uneasy feeling that EXT may not be easy to integrate with other JS libs eg DWR, YUI etc. I see this as the price you pay for a slick, tightly integrated package. Am I way off base here?
My thinking at the moment is to go with YUI because it will play nice with 3rd party packages. Because YUI does not provide sample apps of the quality of EXT, I will copy an Ext sample app feature for feature into a YUI implementation.
Again I am not here to extol the virtues of Ext over YUI! Just checking that my thinking is straight on this topic.

Regards,
Vincent.

devnull
12 Mar 2008, 8:31 AM
Yes, Ext has roots in YUI. The way I see it, it could be considered a code fork.
Ext does have adapters for several other popular frameworks and libs, but this is mostly for backwards compatibility; Ext should provide everything you need nowadays. And yeah, for the most part you can expect anything labeled as a "framework" to not get along with anything else labeled as a "framework". This is true of any language, not just javascript. Frameworks attempt to provide an all-in-one solution, which means that each one will be including a solution for a given problem (which of course means two bits of code trying to do the same thing at the same time, you can see how ugly that gets).

SeaSharp2
12 Mar 2008, 8:53 AM
However, I get the uneasy feeling that EXT may not be easy to integrate with other JS libs eg DWR, YUI etc. I see this as the price you pay for a slick, tightly integrated package.
DWR is a server-side framework and a natural partner to ExtJS assuming you are also a Java developer.

There is a community developed DWR JavaScript proxy for Ext discussed here:
http://extjs.com/forum/showthread.php?t=23884&highlight=dwr

michaelc
12 Mar 2008, 12:25 PM
I am new to this framework, so not the best to answer.
but it seems that it's all namespaced in a way that it should play well with other products.

as I get a better understanding of the component set I can see that I can do just about everything in extjs or as I do ( because I still get lost) do some of the base line layout in HTML and then attach a component to that. the only problem I would see is if you have two frameworks working together and you build dependencies between them, you could be asking for trouble as the flow may not be the same and objects may not be available when needed.

simeon
12 Mar 2008, 7:15 PM
with the different adapters you can pair ext with several other frameworks. This provides the ability to layer ext's widgets into an existing app that uses another framework.
This also allows you to use another framework to provide functionality not provided by Ext. I am sure there are features in other frameworks that aren't in Ext yet, but every release that list gets smaller and smaller. From what I have seen in the last year of using ext, it has everything you need to build a rich web app.