[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-21 Thread asookazian
Ok, thanks! I did not see a keyword hit on 'TransactionalSeamPhaseListener' in the 2.0.0.GA ref pdf so I got a little confused when comparing with the Seam chapter in Bauer/king book. thanks again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115062#41150

[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-21 Thread [EMAIL PROTECTED]
This is enabled by default in Seam 2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115059#4115059 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115059 ___ jboss-user mailin

[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-20 Thread asookazian
On pg. 814 of JPA/Hibernate book, it talks about TransactionalSeamPhaseListener. I am currently not using this in my faces-config.xml. Is it required to use this with SMPC and flushMode=MANUAL? | http://java.sun.com/xml/ns/javaee"; | xmlns:xsi="http://www.w3.org/2001/XMLSche

[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-20 Thread asookazian
I noticed that when I reverted to the @PersistenceContext (EXTENDED) config without SMPC but with flushMode=MANUAL on @Begin, the problem was reproduced. So the key is SMPC + flushMode=MANUAL. Please correct me if that statement is wrong. View the original post : http://www.jboss.com/index.htm

[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-20 Thread asookazian
Hey it works now! Not sure if JBoss wasn't picking up the deployment or what (I had to remove an @Out annotation as well that wasn't being used). The premature update is gone with flushMode=MANUAL and SMPC. thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopi

[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-20 Thread asookazian
SEAM 2.0.0.GA JBOSS 4.2.1.GA So I tried using SMPC and it still updates the record prematurely (before @End submit method is executed). There is another SFSB (session-scope) but it should not have anything to do with this particular table persistence. Here is the current code: SFSB: package

[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-20 Thread asookazian
If I replace EXTENDED PersistenceContext with SMPC, will it solve the premature update to the table? I will try that now with flushMode=MANUAL and w/o bypassUpdates in a4j:support. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114731#4114731 Reply to the po

[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-20 Thread asookazian
I tried using the following and in the debugger I'm seeing that in myAuditList (3rd param in action method) that row's value for the radio button clicked 'yes' is null. If I remove the 'bypassUpdates' from a4j:support, the value shows as true. I tried this twice to make sure... xhtml:

[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-20 Thread [EMAIL PROTECTED]
Are you using manual flush mode? Or bypassUpdates on the a:support? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114649#4114649 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114649 ___

[jboss-user] [JBoss Seam] - Re: Update transactions occurring prematurely in Seam app

2007-12-18 Thread asookazian
here's the server.log output: 2007-12-18 11:08:28,146 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events | 2007-12-18 11:08:28,146 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.afterPhase | 2007-12-18 11:08:28,146 DEBUG [org.jboss.seam.util.Na