-
1. Re: Values are Updating automatically
florianhell Jul 11, 2011 7:03 AM (in response to ramumedipally)Sounds like you're working with a ajax based jsf framework (ICEfaces?) direct on the entity with flush-mode to auto. Is this correct?
-
2. Re: Values are Updating automatically
ramumedipally Jul 11, 2011 7:09 AM (in response to ramumedipally)Yes, What kind of changes I need to do
-
3. Re: Values are Updating automatically
ramumedipally Jul 11, 2011 7:10 AM (in response to ramumedipally)But I am not using ICE Faces
-
4. Re: Values are Updating automatically
florianhell Jul 11, 2011 7:13 AM (in response to ramumedipally)when ur in an jpa based application u can turn flush mode in persistence.xml to manual, but then you really have to flsuh the entitymanager after every commit. Otherwise u have to change ur architecture and integrate an other data access layer, may stateless ejbs for doin the persistence.
-
5. Re: Values are Updating automatically
ramumedipally Jul 11, 2011 7:34 AM (in response to ramumedipally)Could you pls tell me how can we turn flush mode off In persistence.xml. I am new to Seam
-
6. Re: Values are Updating automatically
florianhell Jul 11, 2011 8:10 AM (in response to ramumedipally)In your components.xml
<components xmlns="http://jboss.com/products/seam/components" xmlns:core="http://jboss.com/products/seam/core"> <core:manager conversation-timeout="120000" default-flush-mode="manual" /> </components>
-
7. Re: Values are Updating automatically
ramumedipally Jul 11, 2011 8:21 AM (in response to ramumedipally)do I need to do any more changes? Cause it is not working yet. Values are yet updating.
-
8. Re: Values are Updating automatically
florianhell Jul 11, 2011 8:22 AM (in response to ramumedipally)Well, I don't know your code, so if your using conversations u could set them manual too, may you should better take a look into the seam documentation and learn the basics.