-
1. Re: Flushmode.MANUAL still persisting
nepoez.nepoez.gmail.com Mar 27, 2009 8:35 PM (in response to nepoez.nepoez.gmail.com)I've got a form where when first loaded, a parent is retrieved from the PC. This Parent has a list of children. The expected behavior is, when I click add, a new Child() object is added to the parent.getChildren(). So the screen will show a blank child in the form of a text field bound to the child's name, the name is a required field in the db.
my conversation start with
@Begin(join=true,flushMode=FlushModeType.MANUAL)
So when I click the action to add the new child to the list, I expect it to not worry about the chil'd name being null, but it does, causing the following error:
Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.bla.child.name
Seems like flushing is happening! Even if I change the setting in component to make manual flushing to be default in conversations. please help!
-
2. Re: Flushmode.MANUAL still persisting
valatharv Mar 27, 2009 8:43 PM (in response to nepoez.nepoez.gmail.com)Which component you are using for clicking action.
-
3. Re: Flushmode.MANUAL still persisting
nepoez.nepoez.gmail.com Mar 27, 2009 8:47 PM (in response to nepoez.nepoez.gmail.com)tried a4j:commandButton and plain h:commandButton
either way.. after a few redeploys it seems to be working now lol
-
4. Re: Flushmode.MANUAL still persisting
nepoez.nepoez.gmail.com Mar 27, 2009 8:50 PM (in response to nepoez.nepoez.gmail.com)but it only works in the @begin(flushmode...
in the component setting it does nothing
-
5. Re: Flushmode.MANUAL still persisting
lucaster.luca.cavagnoli.gmail.com Aug 8, 2011 8:10 AM (in response to nepoez.nepoez.gmail.com)lucius, were you able to solve the problem?