Hi there,
I have a problem reloading/refreshing Parent object P from inside an Ajax
call.

The conditions are as follow:

I have Parent object P and child object C. 
Child object has a unique time-stamp constraint.
Child objects can be created or updated from two different pages, page A
and/or page B.


In order to avoid unique constraint exception, I want to check if child with
time-stamp T exists for parent P. It is my intention, therefore to refresh
parent P in order to check.

On the main panel I am using loadable detachable model and I am passing that
loadable detachable model object to the panel where I want to do the
checking.


When I call (Parent) model.getObject(); I get the following exception:

ERROR - RequestCycle               - a different object with the same
identifier value was already associated with the session:
[com.myProject.dbEntities.domain.Parent#1364]

org.hibernate.NonUniqueObjectException: a different object with the same
identifier value was already associated with the session:
[com.myProject.dbEntities.domain.Parent#1364]


The way I am implementing the load function for the Loadable Detachable
Model is just the standard: parentService().load(Parent.class, id);

How can I refresh the Loadable Detachable Model object without getting the
above exception and without having to refresh the entire page?


Any help will be greatly appreciated.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Refreshing-loadable-detachable-model-object-inside-an-ajax-call-tp3446979p3446979.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to