Re: [T5] Problems with commitAfter

2009-07-26 Thread Marcus Veloso
Hi Jose, What we usualy do is create a new method (to do the persistence) and use @CommitAfter there. @OnEvent(component="addCustomer",value="success") Object onSuccess() { this.persistData(); ... } @CommitAfter public void persistData() { ... }

Re: [T5] Problems with commitAfter

2009-07-24 Thread Sergey Didenko
Well, now it looks like Hibernate related problem. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: [T5] Problems with commitAfter

2009-07-24 Thread jose luis sanchez
Apparently, there's been a rollback .. but ... why ? there's no error .. how can i get more info ? @Log @CommitAfter public void onAction() { Customer customer = new Customer(); customer.setPhone(99L); customer.setType(CustomerType.STANDARD); theSession.s

Re: [T5] Problems with commitAfter

2009-07-24 Thread jose luis sanchez
Looking inside the database :-) Even after changing to another page, quitting the application , etc .. How do you check that data is not persisted, Jose? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For addit

Re: [T5] Problems with commitAfter

2009-07-24 Thread Sergey Didenko
How do you check that data is not persisted, Jose? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: [T5] Problems with commitAfter

2009-07-22 Thread jose luis sanchez
Hi all. Maybe i missed some info .. This code was inside a standard T5 page, with a hibernate session injected. It's curious , because i find no reason for the code not to be commited, it's even not giving errors ... not even a rollback. Ups...Sorry Jose i didn't notice u were using the @Comm

Re: [T5] Problems with commitAfter

2009-07-21 Thread Juan E. Maya
Ups...Sorry Jose i didn't notice u were using the @CommitAfter inside ur components. On Tue, Jul 21, 2009 at 10:55 PM, Howard Lewis Ship wrote: > On Tue, Jul 21, 2009 at 12:19 PM, Juan E. Maya wrote: >> Hi Jose, >> >> did u remember configure the HibernateTransactionAdviser as described >> at the

Re: [T5] Problems with commitAfter

2009-07-21 Thread Howard Lewis Ship
On Tue, Jul 21, 2009 at 12:19 PM, Juan E. Maya wrote: > Hi Jose, > > did u remember configure the HibernateTransactionAdviser as described > at the bottom of: > http://tapestry.apache.org/tapestry5/tapestry-hibernate/userguide.html The advisor is only necessary when using @CommitAfter with your ow

Re: [T5] Problems with commitAfter

2009-07-21 Thread Juan E. Maya
Hi Jose, did u remember configure the HibernateTransactionAdviser as described at the bottom of: http://tapestry.apache.org/tapestry5/tapestry-hibernate/userguide.html ? On Tue, Jul 21, 2009 at 9:13 PM, jose luis sanchez wrote: > Hello all. > > I'm experiencing weird problems with the @CommitAft

[T5] Problems with commitAfter

2009-07-21 Thread jose luis sanchez
Hello all. I'm experiencing weird problems with the @CommitAfter tag ... Have a hibernate schema, a configuration, and everything ok ( it runs , checked ), now, the only WAY of getting a data to be persisted into database is using a transaction, like this @OnEvent(component="addCustomer",