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
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!
Which component you are using for clicking action.
tried a4j:commandButton and plain h:commandButton
either way.. after a few redeploys it seems to be working now lol
but it only works in the @begin(flushmode...
in the component setting it does nothing
lucius, were you able to solve the problem?