Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Seam and Ajax

 
Paras Jain
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • 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?
 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • 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: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks great! Thanks for the example
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic