• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF become RESTful

 
Yosi Pramajaya
Ranch Hand
Posts: 46
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I make my JSF projects become RESTful?
What code should be used? Help me please.
Thank you.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
REST is an architecture for web services; what's the connection to JSF (which is used for GUI web apps, not web services) ?
 
Yosi Pramajaya
Ranch Hand
Posts: 46
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, sorry about that.
I don't know anything about it, I just hears some rumors about it.

Thanks for the explanation, Ulf.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
REST is pretty much the polar opposite of JSF.

In REST, a single GET URL does all the work in a one-shot cycle. In JSF, the work is done in a series of form postbacks.

REST typically has much less overhead, especially since it often maintains little or no server state, but its very simplicity also limits what it can do.
 
Yosi Pramajaya
Ranch Hand
Posts: 46
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But if you read Core JavaServer Faces, by David Geary and Cay Horstmann, from Prentice Hall,
I read that JSF 2.0 Navigation can be RESTful, so that's confusing for me.

 
N Deepu
Greenhorn
Posts: 28
Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF can be integrated with spring (REST webservices APIs to be included) to make it RESTful. There is a step by step tutorial in the IBM website about using the REST webservice along with spring and JSF. You can check the same for more information.
 
Yosi Pramajaya
Ranch Hand
Posts: 46
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it can be integrated.
Can I know the address of the web you advised?

After I done learning JSF,
integrating with Spring, I'll do.

Thanks
 
N Deepu
Greenhorn
Posts: 28
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.ibm.com/developerworks/webservices/library/wa-spring3webserv/index.html

This is the link. Step by Step tutorial is given. It'l be helpfull.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic