Hi Robin, Thanks for the extra info, much appreciated! and +1 for a short blog! would help those of us looking to migrate.
cheers, Peter ----- Original Message ----- From: "Robin Komiwes" <robin.komi...@gmail.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Tuesday, 1 June, 2010 11:57:26 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: [Announce] Tapestry5 jQuery integration and Tapestry5-ClientResources - How does that work, does Tapestry not require 'tapestry.js' or does jquery provide some equivalent? This module comes with a new tapestry.js [1] which is my vision of the agnostic layer (java equivalent would be an interface). Then there is a tapestry-jquery.js [2] , which is the implementation of tapestry.js with jQuery (java equivalent would be implementation class) Original tapestry.js is dropped with the help of tapestry5-clientresources library [3] <http://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/tapestry-jquery.js> - How would jQuery integrate with existing applications that use tapestry AJAX / prototype features? This library aims 100% jQuery websites. Integration with existing applications should not be a problem if you did not code additional Prototype/Scriptaculous JavaScript. Just run the integration tests of this library if you want a proof, they run tests against the same application: one time with jQuery, another time with Prototype! If you want to use both Prototype and jQuery, then simply activate jQuery.noConflict() [4]. The thing is that I rely on the same methods specifications than the original tapestry.js, then it's transparent in most cases. For some component I didn't manage to integrate jQuery without modifying the component Java class. (Most of the time simply because of the very restrictive @IncludeJavascriptLibrary annotation...). For theses components I had to fork the original Java class (see [5] for an example on Palette) See README.md [6] for complete list of components: - integrated in a transparent way - which are a fork of core tapestry components The good thing with the jQuery library is that with are aiming to integrate lots of jQuery plugins. Dialog component is just the first one of a long list! Mmm, I feel like I should blog on this subject. :) [1] http://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/tapestry.js <http://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/tapestry.js> [2] http://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/tapestry-jquery.js [3] http://github.com/got5/tapestry5-clientresources [4] http://docs.jquery.com/Using_jQuery_with_Other_Libraries [5] http://github.com/got5/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/components/Palette.java [6] http://github.com/got5/tapestry5-jquery/blob/master/README.md On Tue, Jun 1, 2010 at 10:05 AM, Peter Stavrinides < p.stavrini...@albourne.com> wrote: > Hi > > What do you mean by: > " This library fully drop out Prototype, Scriptaculous, Blackbird and > tapestry.js and replace them by jQuery." > > - How does that work, does Tapestry not require 'tapestry.js' or does > jquery provide some equivalent? > - How would jQuery integrate with existing applications that use tapestry > AJAX / prototype features? > > I get the impression you could only use this module for a new application, > am I correct in thinking this? > > cheers, > Peter > > > > > > ----- Original Message ----- > From: "Robin Komiwes" <robin.komi...@gmail.com> > To: "Tapestry users" <users@tapestry.apache.org> > Sent: Wednesday, 28 April, 2010 12:54:18 GMT +02:00 Athens, Beirut, > Bucharest, Istanbul > Subject: [Announce] Tapestry5 jQuery integration and > Tapestry5-ClientResources > > Hey there, > > We are glad to introduce "tapestry5-jquery": a jQuery integration > for Tapestry 5! This integration is already available as a maven > artifact. This library fully drop out Prototype, Scriptaculous, Blackbird > and tapestry.js and replace them by jQuery. > > We did our best to make this integration as transparent as possible. An > important part of components can still be used as is! We tried to stick the > more we can to jQuery philosophy. All code is based on official jQuery > coding style guidelines and on existing plugins. > > jQuery for Tapestry 5 has been a long time request from an important part > of > Tapestry community. There was some discussions about it and Tapestry 5.2 > should provide some built in bridges for other JavaScript frameworks > integration, however there is no chance to see that for Tapestry 5.1.x. > > Currently, the module is still in snapshot version and we need feedback > from > users before releasing it. We are looking forward to find bugs (if there > are > any) and any lack of features... Some (big) choices have been made and as > there is new features, some features that were present with > prototype/scriptaculous are not available anymore. > > All source code is available on Github. Don't forget to read the README > file > for installation instructions and How To: > http://github.com/got5/tapestry5-jquery > > > This module comes with a bonus module: "tapestry5-clientresources". It's a > small module also for Tapestry 5.1.0.5 that offers the possibility to > changes default JS and CSS included on each pages. When not using Tapestry > 5 > default JS stack (prototype, scriptaculous...) it also fix direct calls to > Prototype functions, like already reported > bug TAP5-994 (and fixed in 5.2). Again, check Github for source code and > instructions: http://github.com/got5/tapestry5-clientresources > > Of course, we are looking forward to leverage theses modules to Tapestry > 5.2 > as soon as this version is released. > > -- http://github.com/got5 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org