I have finally solved this issue.
In my original scenario, I was implementing an anonymous class and inside
that anonymous class I was calling parentService().load(Parent.class, id);.
To solve this, created an inner class to replace the anonymous class and
when initialising the inner class objects, I passed the containing panel's
model (which is a loadableDetachableModel object).
I simply called the (Parent) model.getObject();  on the inner class function
that responds to ajax calls in order to have a fresh parent object from the
db.

That solved all the problems mentioned in my original post.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Refreshing-loadable-detachable-model-object-inside-an-ajax-call-tp3446979p3509490.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