This content has been marked as final.
Show 1 reply
-
1. Re: Help with @AssertTrue and OptimisticLockException
torakuma Sep 4, 2008 9:58 PM (in response to torakuma)I finally got it working after reading the post
Problem with Validator
.Dan Allen provides a great example in there on how to use an Interceptor with an annotated method for validation. All I had to do was switch the InterceptorType.CLIENT to InterceptorType.SERVER and it worked as-is.
Now my update method looks like this:
@Override @ValidatableAction public String update() { return super.update(); }
... and the validators are called manually from the HomeInterceptor. Now I can slap the @ValidatableAction on my action methods wherever I need them. Very cool.
D