• 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

Seam and Ajax

 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Seam support Icefaces for Ajax. How different is this from DWR remoting. Can we integrate DWR with Seam framework?
 
Author
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seam has a replacement for DWR named JavaScript remoting. I cover this topic in detail in chapter 12 and also draw parallel to DWR. The main difference between Seam remoting and DWR is that Seam remoting uses an XML payload, while DWR uses a JSON one. It wouldn't be impossible to bridge them, but then again, what would be the point. You simply add @WebRemote to the method of a Seam component and you can call it from JavaScript.

Java:


JavaScript:
 
Paras Jain
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks great! Thanks for the example
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic