webtier@glassfish.java.net

Re: RESTful JSF?

From: Thibaud Vibes <tvibes_at_onyme.com>
Date: Fri, 14 Dec 2012 15:01:10 +0100

Le 14/12/2012 14:19, forums_at_java.net a écrit :
> Yes - you are correct - bookmarkable urls is not REST - it is a step
> in that
> direction. However, to really incorporate REST with JSF, you would
> probably
> need some sort of adapter that understands POST, GET, PUT, DELETE in a
> REST
> way. You probably would want direct access to the managed bean
> layer/EL..etc... You should also look at JSR 311.
I agree,

http://domain/blog/entry/9 that returns HTML => JSF 2 + pretty-faces

http://domain/blog/entry/9 that returns JSON or XML (and support for
POST, GET, PUT, DELETE) => JAX-RS (jsr 311)