-
1. Re: Unwanted datamodel update on action cancel
blabno Jan 31, 2008 12:10 PM (in response to blabno)Hey guys, you sure know some way to work it out !
I do not want to put view-id in form buttons, but only transition names. When I do that, then form gets submitted and my injected object gets changed according to data entered into form (event PK). Can i somehow block inserting submitted form data into object attributes ? -
2. Re: Unwanted datamodel update on action cancel
javichi_fer Jan 31, 2008 2:36 PM (in response to blabno)You are probably using an Extended Persistet Context. If you really need it try making the country field (the one you edit) a String property of some backing bean and dont use the Entity property directly.
If the user clicks to save the country set the Entity property with the new value and if he clicks cancel just do nothing but redirect to the appropiate view. -
3. Re: Unwanted datamodel update on action cancel
pmuir Feb 3, 2008 7:22 PM (in response to blabno)Use manual flushmode and use the none conversation propagation. I wouldn't do what javichi_fer suggests -thats pretty ugly.