First of all, a simple example that shows this error can occur (Tapestry 5.0.17):
Imagine the following:
1. A page that shows objects to be edited inside of a Grid (EditDomains)
- An "Edit Link" inside of the grid table that will link to another page that allows editing of the object. The "Edit Link" passes the whole object to the Edit Page.
2. The Edit Page receives the edited object and saves it.
EditDomains.tml
EditDomains.java
EditDomain.tml
EditDomain.java
org.apache.tapestry5.runtime.ComponentEventException a different object with the same identifier value was already associated with the session: [tm.framework.entities.Domain#6]
The Solution: