Doesn't seem to work.
It does work if I do the following:
.tml
-----
<t:hidden t:value="version" />
.class
------
@Property
private Integer version;
void setupRender() {
version = person.getVersion()
}
void onSuccess() {
if(version == person.getVersion) {
// do update
} else {
// don't do update and show some error
}
}
Really don't know what's best practice to implement something like this.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718430.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]