Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Seam and Ajax

 
Paras Jain
Ranch Hand
Posts: 140
  • 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: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks great! Thanks for the example
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!