This content has been marked as final.
Show 3 replies
-
1. Re: Seam + Ajax4JSF
fernando_jmt Aug 13, 2007 12:06 PM (in response to pdhaigh)If you are using a conversation you can start it using manual flush mode.
@Begin(flushMode = FlushModeType.MANUAL) public String select(User instance) { user = em.find.... return result; } @End public String create() { em.merge(user); em.flush(); return result; }
HTH. -
2. Re: Seam + Ajax4JSF
pdhaigh Aug 13, 2007 6:56 PM (in response to pdhaigh)thanks,
is there a way to set the flush mode globally? -
3. Re: Seam + Ajax4JSF
matt.drees Aug 13, 2007 10:49 PM (in response to pdhaigh)An alternative is to set bypassUpdates="true" on your a4j:support tag. You'll still get a flush, but the model won't have changed.
I tend to use both flushMode = manual and bypassUpdates.