Re: BeanEditForm and hibernate

2012-11-19 Thread Ivan Khalopik
Sorry, I have made mistake, you will need EventConstants.VALIDATE event instead of EventConstants.VALIDATE_FORM, and also you need component id. But to specify this component id you have to override property editor as I've mentioned before. On Mon, Nov 19, 2012 at 6:01 PM, Nicolas Barrera wrote:

Re: BeanEditForm and hibernate

2012-11-19 Thread Nicolas Barrera
Thank you so much Ivan, I 'd rather use option number 1 as I like to leave transaction management as I 've already got it. Related to the first option you mentioned and the code you posted... it's not necessary to override the name property with ain't it? cheers, Nicolás.- On Mon, Nov 19, 20

Re: BeanEditForm and hibernate

2012-11-19 Thread Ivan Khalopik
You can try 2 options: 1. Use validation by name to prevent name changes before request to DB. It will be executed before name property will be assigned to new value: @OnEvent(value=EventConstants.VALIDATE_FORM, component="nameField") public void validateName() { //... } 2.