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() { ... }
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
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
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
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
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
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
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
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
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",
10 matches
Mail list logo