How to check pending changes in the page when browser back button is clicked


set the following property in the af:document tag of your page

<af:document id="d1" uncommittedDataWarning="on">

uncommittedDataWarning - Specifies whether users should be warned about uncommitted data when navigating off the page or region. Setting this property to ‘on’ will enable the warnings.
we can also call

ViewPortContext.isDataDirty();

to check for any uncommitted data

Advertisements

4 thoughts on “How to check pending changes in the page when browser back button is clicked

  1. Pingback: Tweets that mention How to check pending changes in the page when browser back button is clicked « They point the finger at me.. again! -- Topsy.com

  2. Sudipto

    Vinod,
    We are facing an issue in our application where this doensot seem to work for input fields for which autosubmit is turned to true. Once I unset thye autoSubmit property to false , this works fine.

    the autosubmit is needed in our application for specific needs.

    Can you please throw some light on this weird behaviour !

    Thanks
    Sudipto

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s