Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What is the best practise for setting dirty flag of a page/view?

Leon Zeng-OracleJul 9 2013 — edited Jul 10 2013

For a page/view, normaylly there are 2 things to do for diry data:

1. when it's clean, Save button is disabled, when it's dirty, save button is enabled.

2. when it's dirty and the window is closed, a popup says "you have unsaved data, close will lose the data".


My thought is: it must be handled at client side, because not all valuechange is auto submitted. E.g., you type the 1st letter of a string in a input box, the server side does not know it, but save button should be enabled immediately.


Is it possible to capture all valueChange events in a page or a view at client side?

I'm not sure what is the best practise for setting dirty flag? If there is better solution? Does ADF provide facility for this?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2013
Added on Jul 9 2013
3 comments
558 views