This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Application Frameworks and the fly likes Seam and Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Seam and Ajax" Watch "Seam and Ajax" New topic
Author

Seam and Ajax

Paras Jain
Ranch Hand

Joined: Feb 26, 2005
Posts: 137
I think Seam support Icefaces for Ajax. How different is this from DWR remoting. Can we integrate DWR with Seam framework?


Paras Jain
SCJP 5.0
Dan Allen
Author
Ranch Hand

Joined: Mar 05, 2003
Posts: 164
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:


Dan Allen | http://mojavelinux.com | Author of Seam in Action - http://mojavelinux.com/seaminaction
Paras Jain
Ranch Hand

Joined: Feb 26, 2005
Posts: 137
Looks great! Thanks for the example
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Seam and Ajax