Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Update OneToMany collection from jsf page

dh2k7Sep 10 2010 — edited Sep 10 2010
Hello,

I have a problem updating a OneToMany relationship from a jsf page.
I get an parent object via the local interface from the ejb, then I remove a child from the onetomany relationship and call my save method on the stateless bean which just merges the parent object back to the entitymanager.
But the child I've removed gets not deleted from the database (so its in the collection again after refresh).
So whats the preferred way to do this?

thanks
Dirk
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2010
Added on Sep 10 2010
0 comments
141 views