Hi AK,

The problem is in HomeActionBean. You need to commit the transaction:

>       public Resolution save() {
>               EntityManager em = Stripersist.getEntityManager();
>               em.persist(person);
-------->       em.getTransaction().commit();
> 
>               getContext().getMessages().add(
>                       new SimpleMessage("{0} has been saved.", person)
>               );
> 
>               return new RedirectResolution("http://www.google.com";);
>       }

Otherwise Stripersist will rollback the transaction and you won't see the data
being saved.

Cheers,
Freddy
http://www.stripesbook.com



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to