Stripes Blog from Apr 18, 2006

Stripes 1.3 Released

Stripes 1.3 includes new features and major improvements in several areas, as well as many smaller improvements and bug fixes. Stripes 1.3 is backwards compatible with previous releases.

Major Changes

  • Change to Apache License: Starting with 1.3 Stripes is distributed under the Apache License (version 2). The Apache License is significantly less restrictive than the previous LGPL, and is more broadly acceptable in commerical environments.
  • Expression Based Validation: Validations can now be written in the JSP Expression Language (EL). The expression is specified in the validation annotation along with other validations. E.g. @Validation(expression="this < 10 || this > otherField").
  • Custom Validation Semantics: ActionBeans can now have more than one custom validation method, and additional control can be asserted over when the validation is run. Validation methods are marked with @ValidationMethod. Attributes allow the developer to specify the ordering of validation methods, which events to run them on and whether to run them or not if errors exist prior to execution.
  • Validation Filtering By Event: Required field validations can now be filtered by event. Where previously validation was all-or-nothing for an event, it is now possible to fine tune validations by specifying that a field is required only for a particular event or events, or is required for all events except specified events.
  • Exception Handling System: A new ExceptionHandler interface is used to handle any unhandled exceptions raised anywhere in the application. The primary benefit of this system is to be able to execute arbitrary java code on exceptions instead of simply rendering a view.
  • Interceptor System: Stripes now includes a generic Interceptor system. The request processing lifecycle is defined by the LifecycleStage enumeration, and it is possible to interceptor around any/all lifecycle stages easily. An example interceptor ships with Stripes that enables before/after methods within ActionBeans.
  • URL Alternatives: It is now possible to specify fully qualified class names or provide Class objects almost anywhere the system expects a URL. While not everyone will like this is provides significant flexibility to change URLs without impacting other classes and views.

Download

Stripes 1.3 can be accessed from the Download page.

JIRA Changelog

jiraissues: Unable to determine if sort should be enabled.