You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Paul Bors <pa...@bors.ws> on 2013/02/08 01:11:38 UTC

Log user changes to a form

We have an enterprise web-app which is going through SAP qualification and
a requirement has come through for our application’s settings changes to be
logged.



There are quite a number of pages for which now we must log the values of
the form fields as they were before the user changed them and after they
have been changed.



Before I go crazy and implement my own form to traverse the wicket
component tree for all of its children looking at form components and
capturing their model objects I was wondering if anyone out there has run
into such as use-case and how did you go about resolving it?



Obviously I would like a generic approach rather than fix this at a
per-page or per-form basics.

~ Thank you,
   Paul Bors

Re: Log user changes to a form

Posted by Paul Bors <pa...@bors.ws>.
We're using a mixture of Hibernate with JDBC's DAOs.



I guess I'm faced with either mapping the rest of the tables in Hibernate
and using Envers or doing it in the UI.

If I end up doing this in the UI, I guess I'll create a separate project
and share it with the community for an AuditForm.

~ Thank you,
   Paul Bors

On Thu, Feb 7, 2013 at 8:41 PM, Igor Vaynberg <ig...@gmail.com>wrote:

> if you are using hibernate here is envers...easier to do it on that
> level rather then ui...
>
> -igor
>
> On Thu, Feb 7, 2013 at 4:11 PM, Paul Bors <pa...@bors.ws> wrote:
> > We have an enterprise web-app which is going through SAP qualification
> and
> > a requirement has come through for our application’s settings changes to
> be
> > logged.
> >
> >
> >
> > There are quite a number of pages for which now we must log the values of
> > the form fields as they were before the user changed them and after they
> > have been changed.
> >
> >
> >
> > Before I go crazy and implement my own form to traverse the wicket
> > component tree for all of its children looking at form components and
> > capturing their model objects I was wondering if anyone out there has run
> > into such as use-case and how did you go about resolving it?
> >
> >
> >
> > Obviously I would like a generic approach rather than fix this at a
> > per-page or per-form basics.
> >
> > ~ Thank you,
> >    Paul Bors
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Log user changes to a form

Posted by Igor Vaynberg <ig...@gmail.com>.
if you are using hibernate here is envers...easier to do it on that
level rather then ui...

-igor

On Thu, Feb 7, 2013 at 4:11 PM, Paul Bors <pa...@bors.ws> wrote:
> We have an enterprise web-app which is going through SAP qualification and
> a requirement has come through for our application’s settings changes to be
> logged.
>
>
>
> There are quite a number of pages for which now we must log the values of
> the form fields as they were before the user changed them and after they
> have been changed.
>
>
>
> Before I go crazy and implement my own form to traverse the wicket
> component tree for all of its children looking at form components and
> capturing their model objects I was wondering if anyone out there has run
> into such as use-case and how did you go about resolving it?
>
>
>
> Obviously I would like a generic approach rather than fix this at a
> per-page or per-form basics.
>
> ~ Thank you,
>    Paul Bors

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