While Building An Application , Developer should consider the end-user actions.
Say As Example :
If the End-user enter some data without saving the data skip or closing page means Prompt the end user to Save The Data's which you have entered. It's quite Natural,
But in This Application Development Framework ,Component itself can able to handled as such this things.
<af:checkUncommittedDataBehavior/> this is the Component which i means.However sometimes it will not meets our requirements
From My Experience, if you are using UncommittedDataBehavior tag in your jspx page means Prompt an Alert when you are closing the Browser tab without Commiting the data's
In Many of Times Business Requirement May be Like this While Switching tab, navigating pages/regions,
have to prompt the end user to Commit Data's
I would like to come up with HR-Employee table to do my Requirement
Step1: you can see there is no data's on Action Comment
Step 2: if i entered some data's.if i hit the button named check am dirty are not? yes if some changes found out on Application Module means will prompt a message, with an option
if i go with yes means noticed changes will commit into database
Step 3: now you can see the commit data's
Step4: if i go with no means noticed changes get rollbacked.
Step 5: You cant see the changes, Since It's Rollbacked
Step 6: Now am going to hit the Same Button for checking any dirtiness in Application Module. Nothing have been Noticed.
Download here