Re: SimpleBeanEditorDriver object changes checking

2010-12-29 Thread jerome Thoma
I am using Request.isChanged() in combination with an Editor and the strange thing is that once I call Request.edit(object), isChanged() always returns true, even though no changes have been made yet. Has anyone else experienced this phenomenon? Cheers Jerome On Nov 18, 7:59 am, Fábio Miranda w

Re: SimpleBeanEditorDriver object changes checking

2010-11-17 Thread Fábio Miranda
great! I'm still evaluating RequestFactory, maybe requestContext.isChanged() is what I'm looking for. Thanks, Fábio. On 17 nov, 12:31, Thomas Broyer wrote: > On 16 nov, 19:34, Fábio Miranda wrote: > > > Hi, > > > Is there any way to check if an editor/object states has changed, > > something a

Re: SimpleBeanEditorDriver object changes checking

2010-11-17 Thread Thomas Broyer
On 16 nov, 19:34, Fábio Miranda wrote: > Hi, > > Is there any way to check if an editor/object states has changed, > something analogous to flush method, but without generating errors and > making changes to the object? No, the driver is "dumb", it only (and that's already a big time- saver) "c

SimpleBeanEditorDriver object changes checking

2010-11-16 Thread Fábio Miranda
Hi, Is there any way to check if an editor/object states has changed, something analogous to flush method, but without generating errors and making changes to the object? Use case: when implementing an EditActivity: public String mayStop() { return editor.hasChanges() ? "Are you sure?" : null