Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP 2.0 ClientService: ExitConfirmation
RAP 2.0 ClientService: ExitConfirmation [message #1012950] Fri, 22 February 2013 09:02 Go to next message
Thorsten Lichtenwalter is currently offline Thorsten Lichtenwalter
Messages: 12
Registered: February 2013
Junior Member
Is there any doc regarding the feature "ExitConfirmation"? In my app i just 'tested' this service and set a custom message. When leaving the web site it behaves different, depending on the web browser i am using:

Firefox: there is a popup message "Diese Seite bittet Sie zu bestätigen, dass Sie die Seite verlassen möchten Daten, die Sie eingegeben haben, werden unter Umständen nicht gespeichert." - but my custom message isn't showing up.

Internet Explorer: there is a popup message as well, which includes my custom message.

Is this a correct behavior? What should I expect by using this feature?


Regards
Thorsten Lichtenwalter

---
Thorsten Lichtenwalter
Software Development
msgGillardon AG, Bretten, Germany


Thorsten Lichtenwalter
Software Development
msgGillardon AG, Bretten, Germany
Re: RAP 2.0 ClientService: ExitConfirmation [message #1012955 is a reply to message #1012950] Fri, 22 February 2013 09:12 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1782
Registered: July 2009
Senior Member
Hi Thorsten,
the intended behavior is the one in IE - popup message with your custom
text. Chrome and Opera behave the same. Unfortunately, since Firefox 4.0
(if I'm not mistaken) it's not possible to change the text and Firefox
displays it's own text.
Best,
Ivan

On 2/22/2013 4:02 PM, Thorsten Lichtenwalter wrote:
> Is there any doc regarding the feature "ExitConfirmation"? In my app i
> just 'tested' this service and set a custom message. When leaving the
> web site it behaves different, depending on the web browser i am using:
>
> Firefox: there is a popup message "Diese Seite bittet Sie zu
> bestätigen, dass Sie die Seite verlassen möchten Daten, die Sie
> eingegeben haben, werden unter Umständen nicht gespeichert." - but my
> custom message isn't showing up.
>
> Internet Explorer: there is a popup message as well, which includes my
> custom message.
>
> Is this a correct behavior? What should I expect by using this feature?
>
>
> Regards
> Thorsten Lichtenwalter
>
> ---
> Thorsten Lichtenwalter
> Software Development
> msgGillardon AG, Bretten, Germany
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP 2.0 ClientService: ExitConfirmation [message #1014148 is a reply to message #1012955] Mon, 25 February 2013 04:02 Go to previous message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

That's browser behavior, we cannot change it. It's actually stated in
the JavaDoc of ExitConfirmation:

"Please note that some browsers ignore the message and only display
a generic confirmation dialog if a message is set."

Regards,
Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Using JFace dialogs with RAP 2.0
Next Topic:RAP 2.0: Executing ActionFactory.QUIT leads to client exception
Goto Forum:
  


Current Time: Wed Jul 30 09:18:09 EDT 2014

Powered by FUDForum. Page generated in 0.01672 seconds