8 Replies Latest reply on Feb 10, 2009 10:49 AM by Dean Hiller

    bypass updates with s:button?

    Dean Hiller Expert

      I have a cancel button but the values are still being applied to the bean and since the bean came from the database, once the conversation is finished, the changes are saved to the database even though the user clicked cancel!!!

      this is a very complicated situation actually....it is a long wizard such that we actually have save and continue buttons as well but the user might cancel out of something and then hit save and continue to save some of the other stuff.

      How do I make sure cancel does not apply the bean?  I am hoping I don't have to write a proxy bean for every page and only copy that beans values over to the EJB on hitting the ok/next buttons...that would be ALOT of work for the amount of pages we have.