0 Replies Latest reply on Jul 7, 2009 5:02 PM by magiccreative

    Factory and transactions

    magiccreative

      Cheers,


      I have run into an interesting problem. There is a factory which provides an object in conversation scope. This object is delivered by an EntityHome. The flush mode of the started conversation is set to MANUAL and it behaves as expected at other places - it is written to the database only after a flush.


      The problem is this object being backing bean of an inputText. When something is written into this field and an ajax request is send, the value is written to the database as well. This is of course not what I want because I would like to give a chance to the user to say Cancel and to revert the state from the beginning of the conversation.


      Now I hope my description was not too vague and would like to thank you for your help.