• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERRest example of non-model method with parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERRest example of non-model method with parameters


  • Subject: Re: ERRest example of non-model method with parameters
  • From: Roger Perryman <email@hidden>
  • Date: Thu, 29 Nov 2012 11:36:18 -0500

Thanks Mike! That clears up some of the fog. I'm still not sure what the "preferred" way is for the community, though. Or is there a preferred way? The annotations are VERY verbose and remind me of Spring/Struts.

On Nov 29, 2012, at 11:13 AM, Mike Schrag wrote:

>>> I never used the annotations. The only time I would use them is if I have to register like 100 controllers, just to not have to do it in Application.
>>
>> If you are not using the @PathParam annotation, then how do you specify the parameters for the method? I assume you would use routeObjectForKey to access them. Does this mean there is no formal method signature? This would be similar to accessing parameters from a DirectAction call.
> yes … route controller methods ARE direct actions (if you look at the inheritance hierarchy, you'll see that your controller is a DirectAction). so without the trickery of the annotations, you would lookup the parameters using the routeObjectForKey methods, or you can just fall back to standard DA tools and call request().stringFormValueForKey(..) etc.
>
> ms


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: ERRest example of non-model method with parameters
      • From: Mike Schrag <email@hidden>
    • Re: ERRest example of non-model method with parameters
      • From: Pascal Robert <email@hidden>
References: 
 >ERRest example of non-model method with parameters (From: Roger Perryman <email@hidden>)
 >Re: ERRest example of non-model method with parameters (From: Pascal Robert <email@hidden>)
 >Re: ERRest example of non-model method with parameters (From: Roger Perryman <email@hidden>)
 >Re: ERRest example of non-model method with parameters (From: Michael Hast <email@hidden>)
 >Re: ERRest example of non-model method with parameters (From: Roger Perryman <email@hidden>)
 >Re: ERRest example of non-model method with parameters (From: Pascal Robert <email@hidden>)
 >Re: ERRest example of non-model method with parameters (From: Roger Perryman <email@hidden>)
 >Re: ERRest example of non-model method with parameters (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: ERRest example of non-model method with parameters
  • Next by Date: Re: ERRest example of non-model method with parameters
  • Previous by thread: Re: ERRest example of non-model method with parameters
  • Next by thread: Re: ERRest example of non-model method with parameters
  • Index(es):
    • Date
    • Thread