>> you have to encapsulate to code into one method to be able to change it >> easilly, nothing more ... > Sorry, but I don't understand what you want to say with this...
The code adding the field error have to be on one place, not spread through whole application to be easilly changed when the future versions of Tapestry will require. Eg. method: void addValidationError(HibernateValidateException ex) { Field f = new MyField(getFieldNameFromValidateException(ex)); recordError(f, getErrorMessageFromValidateException(ex)); } This method you would invoke everywhere where the validation exception is catched, so when the change will be necessary, anly this method will be changed. Jirka --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]