Hi,
Given a form with data (in text widgets, checkboxes, and so on). This
data comes from a database. On the form, the user can make changes. On
the bottom there are the familiar buttons Cancel, OK and Reset.
I need to keep track of changes. In particular, I need to know if
anything changed from the start. If so, I can enable the OK and Reset
buttons. If nothing has changed, these are disabled (again).
My usual approach is to make a copy of all data when the form is first
filled, and use the idle loop to compare all fields to see if
something has changed. This works, but I assume there are better ways.
What would be a good pattern for this? Listen to focus in / focus out
events? How do you do this?
-- Johan
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
|