I just tried this and yes, the interceptor will be invoked (with both the
validation errors in place and a
net.sourceforge.stripes.action.ValidationErrorReportResolution as
resolution).
On Mon, Jun 23, 2008 at 9:50 PM, Asleson, Ryan <[EMAIL PROTECTED]>
wrote:
>
> OK, so if I define an interceptor that intercepts like this:
>
> @Before(LifecycleStage.ResolutionExecution)
>
> Will the method be called when there's a binding/validation error, or is it
> totally skipped?
>
>
> ------------------------------
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Levi
> Hoogenberg
> *Sent:* Monday, June 23, 2008 2:17 PM
> *To:* Stripes Users List
> *Subject:* Re: [Stripes-users] Grabbing the "Current" Resolution
>
> When you define an Interceptor, Stripes passes an ExecutionContext. This
> object contains the resolution. I'm not sure, but I don't think that the
> BeforeAfterMethodInterceptor hands @Before/@After methods the execution
> context (it would be nice, though, to have the interceptor support an
> optional parameter).
>
> On Mon, Jun 23, 2008 at 8:41 PM, Asleson, Ryan <[EMAIL PROTECTED]>
> wrote:
>
>>
>> Hello,
>>
>> Let's say I annotate a method like this:
>>
>> @Before(LifecycleStage.ResolutionExecution)
>>
>> When the annotated method is called, I assume that some Resolution has
>> been chosen, but has yet to be executed. Is there a way, in that annotated
>> method, to get a reference to the Resolution that is about to be executed?
>> If so, how do I do so? Also, will there also be a Resolution available when
>> binding/validation errors have occurred?
>>
>> Thanks!!
>>
>> -Ryan
>>
>>
>>
>> This e-mail message is being sent solely for use by the intended
>> recipient(s) and may contain confidential information. Any unauthorized
>> review, use, disclosure or distribution is prohibited. If you are not the
>> intended recipient, please contact the sender by phone or reply by e-mail,
>> delete the original message and destroy all copies. Thank you.
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Stripes-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
> This e-mail message is being sent solely for use by the intended
> recipient(s) and may contain confidential information. Any unauthorized
> review, use, disclosure or distribution is prohibited. If you are not the
> intended recipient, please contact the sender by phone or reply by e-mail,
> delete the original message and destroy all copies. Thank you.
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users