• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JSF become RESTful

 
Ranch Hand
Posts: 48
Netbeans IDE Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I make my JSF projects become RESTful?
What code should be used? Help me please.
Thank you.
 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 48
Netbeans IDE Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 28121
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 48
Netbeans IDE Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Greenhorn
Posts: 28
Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 48
Netbeans IDE Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Let's go to the waterfront with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic