wood burning stoves 2.0*
The moose likes JSF and the fly likes JSF become RESTful Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF become RESTful" Watch "JSF become RESTful" New topic
Author

JSF become RESTful

Yosi Pramajaya
Ranch Hand

Joined: Jun 30, 2011
Posts: 46

How can I make my JSF projects become RESTful?
What code should be used? Help me please.
Thank you.


Independent Programmer - Technology Enthusiast - JUG Leader from JUG Joglosemar
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41600
    
  55
REST is an architecture for web services; what's the connection to JSF (which is used for GUI web apps, not web services) ?


Ping & DNS - my free Android networking tools app
Yosi Pramajaya
Ranch Hand

Joined: Jun 30, 2011
Posts: 46

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

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Yosi Pramajaya
Ranch Hand

Joined: Jun 30, 2011
Posts: 46

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

Joined: Jul 28, 2011
Posts: 25

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

Joined: Jun 30, 2011
Posts: 46

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

Joined: Jul 28, 2011
Posts: 25

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.
 
Consider Paul's rocket mass heater.
 
subject: JSF become RESTful