This is a fine idea, but may be deferred a bit until we get some more experience with what it means to be cross-library compatible.
On 5/31/07, Joshua Jackson <[EMAIL PROTECTED]> wrote:
Hi Kris I agree with you. I think it will be great to have this component to replace dependency to a specific javascript framework like dojo or scriptalous. On 5/31/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > hi all, > > wouldn't it be nice to have a java api in tapestry that could > be used to add certain javascript functionality to a page? > preferable independent from a javascript library? > > like: > jsApi.addEventListener(Page page, Component comp, String eventType); > > or: > jsApi.addAsynchronousLink(Page page, ActionLink action) which would be > called by a mixin that was applied to a ActionLink component > > @Component @MixinClasses(AsynchronousLink.class) > ActionLink checkDate > > this way you could provide (contribute) custom implementations > for several libraries like dojo, prototye, yahoo ui,... T4 is very dojo > centric and makes it almost impossible to replace dojo... except you > replace any component with dojo specific script code :) > > the basic services offered by this api would be for: > - communication (ajax, json) > - (a)synchronous calls > - adding/removing event listener (see T4) > (- effects) > ... > > i'd be grateful to some other thoughts and comments on this idea > > g, > kris > > > -- YM!: thejavafreak Blog: http://www.nagasakti.or.id/roller/joshua/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
