Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » F5 browser refresh to be trapped(How to trap F5 browser refresh)
F5 browser refresh to be trapped [message #1766795] Tue, 27 June 2017 07:13 Go to next message
Eclipse UserFriend
Pressing F5 to refresh the browser in a RAP application causes the whole application to be restarted, losing all state date.

The exitConfirmation service is a useful feature to ask the user to confirm that they really want to navigate away from the application (also triggered on F5 refresh), but what would be useful is some mechanism that allows me to trap the F5 refresh within the application itself, and never trigger a browser refresh.

This way I would be able to process some application-specific refresh logic instead.

Is it possible to trap F5 in this way, on all browsers?
Re: F5 browser refresh to be trapped [message #1766799 is a reply to message #1766795] Tue, 27 June 2017 07:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
to my knowledge that's not possible. You could try to add F5 to the display CANCEL_KEYS.
Regards,
Ivan
Re: F5 browser refresh to be trapped [message #1766811 is a reply to message #1766799] Tue, 27 June 2017 10:00 Go to previous message
Eclipse UserFriend
Thanks Ivan - good hint... CANCEL_KEYS in conjunction with ACTIVE_KEYS and a key listener does the job perfectly - I've tested in Chrome and IE and both work exactly how I need.
Cheers, John
Previous Topic:Deploy problem with RAP on WebSphere 8.5 for z/OS
Next Topic:add http-equiv meta in additionalHeaders
Goto Forum:
  


Current Time: Wed Jul 23 14:22:14 EDT 2025

Powered by FUDForum. Page generated in 0.03363 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top