|
|
|
|
Re: User custom method in EL? [message #1268460 is a reply to message #1268405] |
Mon, 10 March 2014 10:22  |
Eclipse User |
|
|
|
Quote:What if I have like 5 validations inside a @Validations annotation, and would like to add a Validation which depends on a custom complex function, should I remove all the 5 validations and re-create them from scratch in the new Validation Service? or is @Service and @Validation work together without problems?
You can mix-n-match any number of ValidationService implementations and @Validation annotations. They will work together without problems.
A ValidationService would probably be easier than a custom EL function for a usecase like "${ MyToolBox.isValidName(Name) }". The advantage of a function is that it is composable and re-usable across a variety of usecases, not limited to validation.
|
|
|
Powered by
FUDForum. Page generated in 0.05893 seconds