Gen Web View applications and support for browser Back/Forward/Refresh buttons
search cancel

Gen Web View applications and support for browser Back/Forward/Refresh buttons

book

Article ID: 208853

calendar_today

Updated On:

Products

Gen - Workstation Toolset Gen

Issue/Introduction

Do Gen Web View applications support browser Back/Forward/Refresh buttons like Web Generation applications support "Browser Controlled History Handling"?

Under Web View applications it has been observed that the browser Back button does not return to previous Gen application page and instead receive prompt to "Leave this page" which then returns to browser home page. This occurs for all browser types and for example if using Internet Explorer in Developer mode (F12) the Console will show the below message before the user accepts the prompt to "Leave this page" which returns to the browser home page:

DOM7011: The code on this page disabled back and forward caching. For more information, see: Microsoft > Back navigation caching

Environment

Component : ECLIPSE WEB VIEW

Resolution

Using the Browser Back button or any Browser Controlled History Handling is not supported in Web View like it is in Web Generation.
A Web View application is dynamically updating its content and hence browser caching does not retain the state.
Also, when the user attempts to use the browser Back and Forward buttons, a Web View application treats this as the user is trying to leave the application.
In summary, the Browser Back and Forward and cache Refresh does not work with Web View. The original idea of Web View to update the page without modifying the URL and refreshing the page.