-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
split to multiple artifacts #10
Comments
Very good point. |
Awesome! |
Just to understand, you'd like to separate out the dependency on spring-web, spring-webmvc, and spring-webflow, right? Looking at the parts where web logic is entangled, it boils down to context rules (e.g. rules that apply to forms) and specific contexts for SPEL. Incoherent thinking-out-loud: The end result is that this would drop the "core" spring dependencies to: spring-core, spring-beans, spring-context, and spring-expression. |
Exactly. The main issue is to decouple validation from presentation. In a multi module project (each tier in his own module), you will be able to build cleaner dependencies like validation-core in service tier module and validation-webflow in web tier module. Further, if someone use another presentation framework (ex: jsf, wicket, tapestry, swing...), he still can use validation-core and implement his own presentation (or contribute a implementation for another framework so there could be more snap-ins for different presentation frameworks). As you wrote: this goes to something like 'forms' to 'context' and ContextEvaluator... |
split to multi module:
'validation-core'
'validation-web' (or if it makes sense 'validation-webmvc', 'validation-webflow')
you can keep artifact 'validation' containing all dependencies to not break current projects.
The point is, that spring validation is independent and could be used in other context than webmvn and webflow (without the need to have these dependencies). This would be great!
The text was updated successfully, but these errors were encountered: