Cheers,
matthew
On Dec 8, 2003, at 11:13 AM, Thompson, Christopher C (Kris) wrote:
<x-tad-bigger>That would be a good option, how would that be done?</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger>-----Original Message-----</x-tad-bigger>
<x-tad-bigger>From:</x-tad-bigger><x-tad-bigger>Jason Carreira [mailto:[EMAIL PROTECTED]</x-tad-bigger>
<x-tad-bigger>Sent:</x-tad-bigger><x-tad-bigger>Monday, December 08, 2003 10:00 AM</x-tad-bigger>
<x-tad-bigger>To:</x-tad-bigger><x-tad-bigger>[EMAIL PROTECTED]</x-tad-bigger>
<x-tad-bigger>Subject:</x-tad-bigger><x-tad-bigger>RE: [OS-webwork] Request for a new Interceptor maybe?</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger>Well, we could make the return code from DefaultWorkflow settable... I think we've talked about having this stuff in webwork-extensions...</x-tad-bigger>
<x-tad-bigger>-----Original Message-----</x-tad-bigger>
<x-tad-bigger>From:</x-tad-bigger><x-tad-bigger>Thompson, Christopher C (Kris) [mailto:[EMAIL PROTECTED]</x-tad-bigger>
<x-tad-bigger>Sent:</x-tad-bigger><x-tad-bigger>Monday, December 08, 2003 11:53 AM</x-tad-bigger>
<x-tad-bigger>To:</x-tad-bigger><x-tad-bigger>[EMAIL PROTECTED]</x-tad-bigger>
<x-tad-bigger>Subject:</x-tad-bigger><x-tad-bigger>[OS-webwork] Request for a new Interceptor maybe?</x-tad-bigger>
<x-tad-bigger>I want an interceptor to check the preconditions of an Action, for example verify that all the request parameters that should have been passed in indeed did. I thought about using the DefaultWorkFlowInterceptor but it has to problems (not with it but with me trying to use it with this problem) 1 is it returns INPUT on error and 2 it returns INPUT on any error not just field error. My action does not have an input to it, it is simply a presentation action that requires a parameter to be passed it.</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger>Maybe we could create an Interceptor that is almost like the DefaultWorkFlow and have it call a method called say verifyPreConditions….or something along those lines and have it return to ERROR.</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger>[Slightly tangent here]</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger>Would it be useful or used at all if we had a repository (outside of CVS) where users could create, add, download Interceptors? It seems like there could be many more useful interceptors than what would be needed to keep in the master CVS repository. Any thoughts?</x-tad-bigger>
<x-tad-bigger> </x-tad-bigger>
<x-tad-bigger>Kris Thompson</x-tad-bigger>