Announcement Announcement Module
No announcement yet.
transaction problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • transaction problem


    I'm using spring web flow, hibernate, and having problem with the following scenario:

    i define web flow as a persistent context and have one end state with commit="true" and another with commit="false".

    in some view state I create object and do hibernate merge in database, the result is shown in a datatable which is bound to datamodel, and read data from that table in database. However the new inserted data is not showing in the datatable until i reach end state with commit=true !!

    How can i achieve that users see any changes that is made during this web flow but to commit or rollback actual changes to the database acording to end state (one commit=true -> commit data, second commit=false -> rollback) ?

    thanks in advance.