In case anyone's curious, here's the synopsis of my solution:
- Manually annotate (Java 1.5) the private fields I want to "track".
- Have a base class that stores the original state (when a record is
first loaded from the database, for editing, for example).
- Write a class that walks through th
Laurie Harper wrote:
Scott Van Wart wrote:
We have a requirement that the user be prompted if any changes have
been made on a form, and they try to navigate away. I've divided
this up
Firstly, is the requirement to detect changes to the form compared to
how it was last rendered, or compared
Scott Van Wart wrote:
We have a requirement that the user be prompted if any changes have been
made on a form, and they try to navigate away. I've divided this up
Firstly, is the requirement to detect changes to the form compared to
how it was last rendered, or compared to how it was *origin
We have a requirement that the user be prompted if any changes have been
made on a form, and they try to navigate away. I've divided this up
into sub tasks:
- Iterating through properties of a bean.
- Render properties as hidden fields.
- Render some JavaScript to check for modifications.
The
4 matches
Mail list logo