• 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: 162
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Author
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 162
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic