Miklos2
(Miklos Kiss)
September 11, 2012, 9:46am
1
hi all,
is there a way to query a JPAContainer EntityItem that the contained entity is modified since last time refreshed?
i have a form over the entityitem and want to check it was modified by the user or not, so i can popup a confirm dialog.
i tried isDirty and isModified but both return false in all cases.
I also tried setWriteThrough(false), but it says “EntityProvider is not batchable”.
What is the workaround for this?
thanks
misu
Miklos2
(Miklos Kiss)
September 20, 2012, 3:21pm
2
is there wreally no solution to know that an object attached to a form has been changed by the user or not?
Martin80
(Martin Henkel)
November 5, 2012, 9:35pm
3
You can get rid of the “EntityProvider is not batchable” error by using JPAContainerFactory.makeBatchable(). Then try both the forms and the containers isModified() methods , I can’t remember which of those that worked…
Miklos2
(Miklos Kiss)
December 3, 2012, 7:53am
4
JPAContainerFactory.makeBatchable() and form.isModified() together did the trick.
Thx!