Announcement Announcement Module
No announcement yet.
Update Entity Browser Back Button Problem - Roo Bug? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Update Entity Browser Back Button Problem - Roo Bug?

    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:

        response.addHeader( "Pragma", "no-cache" );
        response.addHeader( "Cache-Control", "no-cache, no-store" );
        response.setDateHeader( "Expires", 0 );
    I do even get the version with the previously changed name. So the view seems up 2 date.

    But If I know change the surename and try to update again, Hibernate catches this error:

     org.hibernate.StaleObjectStateException: Row was updated or deleted by another  
     transaction (or unsaved-value mapping was incorrect)
    But I do not get why?
    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!