Hi Bill,
On 03/06/14 14:26, Bill Burke wrote:
>
>
> On 6/3/2014 9:09 AM, Sergey Beryozkin wrote:
>> Are you misunderstanding the purpose of this possible effort by any
>> chance ?
>
> That is highly possible! I just saw MVC, thought struts/jsf, and
> freaked :)
>
Yes, I was also confused by Santiago referring to JSF, but I guess it
will probably act as an optional EE mechanism for accepting the
redirects coming from JAX-RS, this is how I've read Santiago clarifying
it in the follow-up email.
FYI, in CXF, 'MVC' is implemented with a single Java class, a custom
MessageBodyWriter capable of forwarding JAX-RS Response to some handler
with RequestDispatcher.forward, we use Enums to ensure empty Responses
can also be forwarded from MBW. Jersey may be doing it differently, but
ultimately, it is only about enabling the transparent forward as you
yourself suggested, possibly with few extra annotations (something that
Jersey supports).
I agree it is out of scope for JAX-RS to deal with the actual process of
creating the views.
Santiago, Marek, do you agree ?
>> AFAIK it is only about making the JAX-RS response (with or
>> without the model entity) available to some view handler. I'd -1 myself
>> the effort to build our own view handling system.
>>
>> When you redirect to a static resource it is MVC too by the way.
>>
>
> Sure, except without the 'M'.
>
OK :-), or may be we can say a (static) view template has only empty
Model to deal with :-)
Sergey