Thanks for this.

Looking at the core.js, it looks like Tapestry 4 uses much simpler
selectors, mostly selecting elements by their id.

That's one of the things I'm still thinking about: T5 uses advanced CSS
selectors in many places. Both jQuery and Prototype offer that feature, but
it'll be a lot of work to implement if the target JavaScript framework
doesn't offer it.

The easy way (for me) is to expect the framework-specific implementation to
support CSS selectors, the hard way would be to rewrite all areas using
advanced selectors in the Tapestry.js file to use more simple selectors.


regards,

Onno


On Tue, Jun 16, 2009 at 1:50 PM, Andreas Andreou <andy...@di.uoa.gr> wrote:

> For reference, here's the js abstraction that T4 ended up with
>
> https://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.6/skeleton/core.js
>
> The dojo0.4.3 (& default) implementation is at:
>
> https://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.6/
> but there's a jquery one at:
>
> https://tacos.svn.sourceforge.net/svnroot/tacos/tacos-4.1/trunk/tacos-jquery/src/js/tacos-jquery-js/tap-jquery1.2.1.js
> and the (incomplete) dojo 1.x at:
>
> https://tacos.svn.sourceforge.net/svnroot/tacos/tacos-4.1/trunk/tacos-dojo/src/js/tacos-dojo-js/tap-dojo1.0.2.js
>
> There was the concept of a JavascriptManager that basically groups a
> set of js and css files and can include
> them in a page - within the same app, different pages can use
> different JavascriptManagers... sounds similar to
> the stack concept that Howard mentioned recently.
>
> Finally, since IMHO components/widgets cannot really be cross-library
> without sacrificing features, e.t.c.
> there is the concept of component replacements - this is an
> application level configuration that can replace
> any given component with a different one... This of course assumes
> that the replacement component
> can understand (or at least ignore) the same parameters as the
> original one & allows to map
> dojo:Autocompleter -> jquery:Autocompleter, e.t.c.
>
>
> 2009/6/16 Pedro Januário <prnjanua...@gmail.com>:
> > Finally js extensions...
> > I believe this should be usefull add-on to tapestry, jquery is a very
> mature
> > framework with a lots of usefull plugins.
> > Implementing a abstraction layer should be very complex and problably
> very
> > very hard to achive, but could be a nice road to tapestry, but i believe
> > should considerer the effort of it's implementation against the really
> > bennefit.
> >
> > Althought keep the excelent work...
> >
> > Regards,
> >
> > *Pedro Januário*
> > ------------------------------
> > *Delivering Innovation and Technology*
> >
> >
> >
> > 2009/6/16 Onno Scheffers <o...@piraya.nl>
> >
> >> >
> >> > I actually think you're doing really a nice work and that's great to
> >> read!
> >>
> >>
> >>
> >> Thanks Massimo. Still a long long way to go though.
> >>
> >>
> >> regards,
> >>
> >> Onno
> >>
> >
>
>
>
> --
> Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to