Hi,

I changed my listener method that saves information to database to perform *
redirect-after-post*. My listener method now returns an instance of  ILink
(I  changed it because of refresh-after-submit problem).  And honeycomb
stopped commiting  the database changes.

It is because the TransactionDirectService on honeycomb catches the
RedirectException and rolls back the transaction:

       try {
           super.triggerComponent(cycle, direct, parameters);
           svc.commit();
       } catch ( StaleObjectStateException e ){
           svc.rollback();
           cycle.activate("StaleObject");
       } catch ( RuntimeException e ) {
           svc.rollback();
           throw e;
       }**

Is it a bug or maybe I missed something? How do i fix this, maybe commit on
catch(RedirectException)?

Thanks,
Valdemaras Repšys

Reply via email to