users@jersey.java.net

Re: [Jersey] Using other HTTP methods with implicit views

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 09 Jun 2008 11:50:20 +0200

Hi Gregory,

Gregory Murphy wrote:
> Will HTTP verbs other than GET ever be supported with implicit views?
>

The reason why i avoided other HTTP methods was because i thought the
request entity should not be processed by the view. Architecturally it
fits better if the controller does such processing such that the view is
more declarative.

I was pondering allowing an annotation for explicit views such as:

   @View("form")
   @POST
   public Model post(Form form) {
      // process form
      Model m = ...
      return m;
   }

Rather than having to return:

    return new Viewable("form", m);


Do you have a requirement to support such processing by views? maybe
implicit views for processing for POSTing forms is useful?

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109