Hey pros,
I am developing an application using spring mvc 3 and roo.
Everything is working fine so far, except of the browsers back button functionality. If I am updating data, lets say the name of a customer and submit those changes - no problem. But now I am using the back button of my browser thinking "hmm I wanted to change the surename as well". So going back will display again the update page. If I disable browsercaching by my jsps:
I do even get the version with the previously changed name. So the view seems up 2 date.Code:<jsp:scriptlet> response.addHeader( "Pragma", "no-cache" ); response.addHeader( "Cache-Control", "no-cache, no-store" ); response.setDateHeader( "Expires", 0 ); </jsp:scriptlet>
But If I know change the surename and try to update again, Hibernate catches this error:
But I do not get why?Code:org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
Caching is disabled, the view even shows the updated customer values but I am getting this error nevertheless!
I think this may be a bug in roo, because it appears in the tutorial application as well
I really would appreciate any help, thanks in advance!


Reply With Quote