• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

finding out if a property of an object is changed or not

 
Greenhorn
Posts: 1
Eclipse IDE Spring Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to find out if any property on my object has changed or not so if the user has changed some stuff - for example a description field - then let's activate the save butto
so an idea could be this: let's create a Backup of the object at the beginning.... at the end when user is done we also have another object .... now let's compare these two objects and see if they are equal or not, if they are not then it means we need to make some updates ...

now is there any nice library or pattern or idea! that can do this?
 
Ranch Hand
Posts: 34
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am assuming you have a web page where a user is going to populate description field. You could have an onchange javascript event that calls a javascript function. You could do processing in this method.

The end user should not have javascript disabled on his browser.

Thanks,
Badal
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic