[SOLVED] Re: Auto render form bean as hidden fields

2006-08-23 Thread Scott Van Wart
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

Re: Auto render form bean as hidden fields

2006-08-17 Thread Scott Van Wart
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

Re: Auto render form bean as hidden fields

2006-08-17 Thread Laurie Harper
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

Auto render form bean as hidden fields

2006-08-16 Thread Scott Van Wart
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