you really shouldn't lock objects over request..
Because you don't controll anything. He can close the browser or go away
In a swing app where you have a connection to you can at least do something about it
(and show that to the user that he looses it and take it again on a focus of a field)

But long transactions or locks over request is in my eyes bad praktisch that shouldn't be done in a webapp.

Maybe with full use of ajax you can get to the behaviour a bit that a fat client would have..

But i prefer other way. Just let it change it and if it did change (does that really happen a lot? i can't believe that)
then report that first back to the user that a save couldn't happen because another person did change it already
and do show those changes (try to merge it)

johan


On 9/12/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
Hi,

Is there a Wicket (ie really smart) way to detext when the user switch
to another page?

The use case is to release locks that a user might have put on database
records with pessimistic locking when the user switch to another page.

Pierre-Yves


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to