[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-dev
Subject:    Re: Conversion errors and json
From:       Lukasz Lenart <lukaszlenart () apache ! org>
Date:       2014-11-25 15:25:38
Message-ID: CAMopvkMRxHShdQypB-iZ_8pCwSYLUH7X153Mtywtsq-qDhMTTQ () mail ! gmail ! com
[Download RAW message or body]

2014-11-13 22:53 GMT+01:00 Paul Benedict <pbenedict@apache.org>:
> "jsonValidationWorkflowStack" includes "basicStack" which includes
> "conversionError" interceptor...
>
> An unintended consequence is that conversion error messages cannot be
> customized because ConversionErrorInteceptor runs before
> ValidationInterceptor and, thus, will automatically report the field
> conversion errors.
>
> Do we really want that for default behavior? The error message is techy and
> cryptic to the end user. I don't think we should provide the
> "conversionError" in the basicStack. People need to report that themselves
> with validation errors.

Maybe it should be only a "devMode" tool - reports errors when devMode = true


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic