• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Create Ajax components by hand

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
How much it is easy to create Ajaxified components in Wicket?
Do I have the freedom to use any Ajax framework (jQuery, Prototype or DWR) for creating the components? or I have to following a blueprint?
I just remember how is painful to create Ajaxified JSF components, aooch.
Thanks.
 
author
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by John Todd:
Hi.
How much it is easy to create Ajaxified components in Wicket?
Do I have the freedom to use any Ajax framework (jQuery, Prototype or DWR) for creating the components? or I have to following a blueprint?
I just remember how is painful to create Ajaxified JSF components, aooch.
Thanks.



It depends on what you call Ajaxified components. If you are talking about creating your own custom google map implementation from scratch it can be a challenge. However, if you plan on using Google map code and integrate with Google's javascript, it is not that hard.

If you want to make parts of your user interface Ajaxified, it is really simple. A lot of components already have an Ajax counterpart. For example Link has AjaxLink, AjaxFallbackLink (still works without Javascript), AjaxSubmitLink (submits a form). And if you want an Ajax indictator, you could use Wicket extension's IndicatingAjaxLink.

Section 1.3.2 from the free first chapter of Wicket in Action shows how to modify the Link Counter example into an Ajax version.

Regarding integrating with other frameworks, Wicket uses its own Ajax framework for updating parts of a page by rerendering components and replacing the markup in the dom with the rendered markup. This makes it easy for non-javascript programmers to create Ajaxified UIs. But we are open to other frameworks, and you can see those efforts clearly in the Wicket Stuff repository where integrations with jquery, scriptaculous, mootools and dojo exist.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mmmm, it looks Wicket support for Ajax is top notch.
I have always liked Tapestry framework but I don't think that it enjoys this level of Ajax support.
How knows, I will give Wicket a shot!
reply
    Bookmark Topic Watch Topic
  • New Topic