Stripes

@DontValidate should take a parameter to control what happens to validation errors from binding

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: Release 1.5
  • Component/s: Validation
  • Labels:
    None

Description

The documentation is fairly clear that even when decorated with @DontValidate that an event may produce validation errors. However, sometimes this is inconvenient and it would be nice to be able to supress these errors. Something like the following should be possible:

@DontValidate(suppressBindErrors=true)

The default should be false in order to be backwards compatible.

Activity

Hide
Ben Gunter added a comment - 07/Dec/07 8:00 AM

After further discussion, it was decided that the default behavior for 1.5 will be to leave validation errors that occur during type conversion in place but simply ignore them when @DontValidate is present.

Show
Ben Gunter added a comment - 07/Dec/07 8:00 AM After further discussion, it was decided that the default behavior for 1.5 will be to leave validation errors that occur during type conversion in place but simply ignore them when @DontValidate is present.
Hide
Ben Gunter added a comment - 07/Dec/07 10:33 AM

Added ignoreBindingErrors element to @DontValidate with a default value of true. @DontValidate now causes Stripes to completely ignore validation errors no matter when they occur. The errors will still remain in the ActionBeanContext, however.

Show
Ben Gunter added a comment - 07/Dec/07 10:33 AM Added ignoreBindingErrors element to @DontValidate with a default value of true. @DontValidate now causes Stripes to completely ignore validation errors no matter when they occur. The errors will still remain in the ActionBeanContext, however.

People

Vote (0)
Watch (0)

Dates

  • Created:
    18/Oct/06 4:34 AM
    Updated:
    04/Jan/11 3:10 PM
    Resolved:
    07/Dec/07 10:33 AM