On 11/05/2012 01:36 PM, p3k wrote: > thron7-2 wrote >> Depends on your definition of "whole qooxdoo framework". > Well, all I want is a JS file containing the code to call the Rpc method.
If you insist on a stand-alone file you have to create one yourself. Basically, you create a skeleton, configure qx.ui.remote.Rpc to be the sole "include" member and run the 'build' job. But is it really important to have an individual file, just to provide the Rpc class? > > If I try it with the SDK and create a Website app how do I tell it to > include the Rpc class and its dependencies? You don't, it's automatic, you just use the Rpc class in your code. The main difference in the programming model between qx.Website and the SDK is *library-based* vs. *generator-base* programming. Generator-based programming covers all functionality that qx.Website does, but not the other way round. Library-based programming is the simple case where you have a (more or less) self-contained JS library file, you include it in your index page, and then include code that uses the library's API. This is the qx.Website model. You have the library, its API doc, and then you are on your own. The dependency to the library file is static. Generator-base programming means you write your code against any of the (public) framework classes, run the generator, and the generator creates a loadable JS file (or some) and a specific loader which you then include in your index page. This is the model the SDK supports. The generator figures out which framework classes are needed by inspecting your application code, and only includes those classes that are actually relevant. The dependency to the set of framework classes is dynamic, the generator creates a specific build each time you run it. In that the build is much more specific and taylor-made than would be possible with any library-based approach. Or, to put it another way: You are creating a taylor-made library with every generator run, rather than dealing with a static one. T. ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
