This content has been marked as final. Show 5 replies
You didn't mention JDev version.
Maybe this can help: http://chrismuir.sys-con.com/node/1274700/mobile
the problem with allowing browser back navigation is that UI would be served from the browser cache, which then is not in synch with the server side JSF component state, which can get you into trouble. Better is perform navigation within your application if the user wants to go one step back
Yes. we have taken care of data sync. In case user clicks browser Back, we want to show that warning window (Ok / Cancel) and let user take decision.
To achieve this functionality, you must register listener for onbeforeunload event.
The problem is that you can't replace/modify default browser dialog, so maximum what you can do is to set custom message.
You can try something like this:
On each navigation component set clientComponent="true" and add af:clientListener:
<af:commandButton clientComponent="true" ....> <af:clientListener method="doNavigationWithoutWarning" type="action"/> </af:commandButton>