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:
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
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.
Hi all,
I 'm not using the tapestry-hibernate module.
I 'm using spring configured hibernate, tapestry-spring, and an open
session in view spring filter.
I can use BeanEditForm to create a new entity and save it, the problem is
when trying to modify an existing entity.
My problem is that during