We have validation rules written in Drools at a backend. Rules are written against Domain model.
We would like to have rules at one place only. So we have created class which looks like:
public class ModelItem<T> {
private String userInput;
private T value;
....
}
And we've extended converters so If conversion cannot be done then we store value in "userInput".
Is there any built-in way how to perform backend validations instead of default wicket validators?
Which concept do you use?