Maybe thats a simple thing, but I have the following situation:
JBOSS 4.2
JSF
EJB3
| public class SpielplatzCrudBean {
| private static SpielplatzDAOLocal dao =
(SpielplatzDAOLocal)LookupService.INSTANCE.lookup(SpielplatzDAOLocal.LOCALNAME);
| Spielplatz selectedSpielplatz;
| ............
| public String delete()
| {
| String id = FacesContext.getCurrentInstance()
| .getExternalContext().getRequestParameterMap()
| .get("selectedId");
| selectedSpielplatz = dao.findById(Long.valueOf(id), false);
| dao.merge(selectedSpielplatz);
| dao.makeTransient(selectedSpielplatz);
| selectedSpielplatz=null;
| return "list";
| }
| }
|
when I call the delete method I always get the removie a detached instance exception.
I tried a lot but have no more idea.
Should I add somthing to the persistence.xml or have I to reconfigure my faces?
Please Help.
Chris
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064735#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...