Commit and Rollback is not available for DataControls other than ADF Business Components as there is no native semantic of commit / rollback. Instead the EJB facade exposes a method ("persist" for commit and "merge" for update) that you call to persist changes. So in ADF, what you do
- drag the merge or persist method from the Data Control and drop it as a button
- A dialog opens for you to point it to the object you want to save
- Use Expression Builder (button next to the value field) and browse bindings --> Iterator name of form --> currentRow --> dataProvider
Next time you press the button, the current row is persisted
Frank
Ps.: For a future release we are working on a mapping method in a session facade that allows us to map the Commit/Rollback operations directly
No comments:
Post a Comment