2 Replies Latest reply on Mar 14, 2008 7:30 AM by jeff liu

    Question about Seam Hotel Booking Demo

    jeff liu Newbie

      Hello everyone


      In the org.jboss.seam.example.jpa.ChangePasswordAction.java:



       public void changePassword()
         {
            if ( user.getPassword().equals(verify) )
            {
               user = em.merge(user);
               FacesMessages.instance().add("Password updated");
               changed = true;
            }
            else 
            {
               FacesMessages.instance().add("verify", "Re-enter new password");
               revertUser();
               verify=null;
            }
         }



      From the above about the the entity is modified, my question is where the tx.commit() takes place?


      Does Seam take care this?


      Thank you