What I want to do is when the user chooses a option in the <h:selectOneMenu currently it refreshes the page with new data but same
jsp. The new data is of a different version. What I want to do is warn the user that he is going to a diffeerent version of the page and will loose any changes they made. I know how to trap whether a change was made but don't know how to pop up an alert befeore the version is changed.
I have a javascript that will pop an alert if the user is going to another page but need to implement it for new version same page.
If I call the javascript before the "a4j:support event="onchange" action="#{" nothing happens. So I need to know how to call the javascript before the action to load the version.