aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Seam and AJAX" Watch "Seam and AJAX" New topic
Author

Seam and AJAX

Kuladip Yadav
Ranch Hand

Joined: Jul 30, 2008
Posts: 162

Hi Dan,

Seam supports Ajax and Ajax component libraries like Ajax4JSF .
whether these library are used only for JSF .
Can we used in JSP ?

One more query ,
Does these library having functionality like DWR(Dierect web remoting )
that exposing your web method direct to client ?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Kuldeep Yadav:
Seam supports Ajax and Ajax component libraries like Ajax4JSF .
whether these library are used only for JSF .
Can we used in JSP ?


I believe, it tightly works with JSF components. Otherwise, I guess, you might end up in making your own custom tags to support all that. And then nothing would remain that straight. I would recommend JQuery to do AJAX in normal JSPs.
Dan Allen
Author
Ranch Hand

Joined: Mar 05, 2003
Posts: 164
Much of the Ajax functionality in Seam actually comes from the Ajax-based component libraries (in the same way that most of what we know as Linux is actually software that runs on top of it, like Gnome). Without JSF, you pretty much lose all of that out-of-the-box support. In fact, it would be pretty difficult (though not impossible) to use Seam w/ plain JSP. You need one of the frameworks with which Seam integrates, such as JSF or Wicket.

Seam provides exactly the same thing as DWR. It is called Seam Remoting. Check out the Remoting chapter in the reference documentation or Seam in Action chapter 12.


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

Joined: Jul 30, 2008
Posts: 162

I believe, it tightly works with JSF components. Otherwise, I guess, you might end up in making your own custom tags to support all that. And then nothing would remain that straight. I would recommend JQuery to do AJAX in normal JSPs.


Hi Adeel
So do you mean that if i want do develop application using JSP then Seam
option is closed for me ?
[ October 08, 2008: Message edited by: Kuldeep Yadav ]
Dan Allen
Author
Ranch Hand

Joined: Mar 05, 2003
Posts: 164
You can use JSP of course, but you also have to be using the JSF servlet. Recall the JSP is really just a templating language and JSF is a layer above it that offers a component-based model (something like a Struts, except that Struts is action-based). In fact, if you are using JSP all by itself, I strongly recommend that you adopt some sort of framework, such as JSF, Wicket, or any of the trillion other alternatives.
[ October 08, 2008: Message edited by: Dan Allen ]
Kuladip Yadav
Ranch Hand

Joined: Jul 30, 2008
Posts: 162

Originally posted by Dan Allen:
Much of the Ajax functionality in Seam actually comes from the Ajax-based component libraries (in the same way that most of what we know as Linux is actually software that runs on top of it, like Gnome). Without JSF, you pretty much lose all of that out-of-the-box support. In fact, it would be pretty difficult (though not impossible) to use Seam w/ plain JSP. You need one of the frameworks with which Seam integrates, such as JSF or Wicket.



Thats really bad new for JSP based application.

Shall I used Seam Remoting in JSP like DWR ?
Dan Allen
Author
Ranch Hand

Joined: Mar 05, 2003
Posts: 164
If you can manage to start Seam without using JSF or Wicket and somehow get some components running (I mean, this stuff is possible, but you are really keeping Seam at an arm's length), then yes, you can use Seam Remoting in your JSP to access Seam components. But I'm really not sure at that point what benefit you are getting out of using Seam so sparsely.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Seam and AJAX