This content has been marked as final.
Show 3 replies
-
1. Re: getEntityManager().remove
trixom Apr 29, 2008 7:59 PM (in response to trixom)BTw, this is the code in the xhtml:
<h:commandButton id="Delete" value="#{messages.delete}" image="#{facesContext.externalContext.requestContextPath}/../img/delete.gif" action="#{parentList.delete(user)}" immediate="true" rendered="#{not parentList.managed}" />
This code is part of a dataTable that iterates through a Set of users.
The delete function is located in the EntityQuery used to get the ResultList of users.
T.
-
2. Re: getEntityManager().remove
jnusaira Apr 29, 2008 10:21 PM (in response to trixom)Click HELP for text formatting instructions. Then edit this text and check the preview.
Try explicitly flushing the call after remove.
It's probably waiting till the transaction has ended to do it.
-
3. Re: getEntityManager().remove
trixom Apr 29, 2008 11:25 PM (in response to trixom)HI,
flushing the entitymanager resulted in a notransaction error.
The problem is a similiar problem to what I have been having with Seam. If you change an object and then use this object (in another list fr example) before it can persist the delete is nullified.
Thanks
T.