The CLIENTCLOSER component is an invisible component. When the client is started as window on its own (i.e. as webstart client or as application, NOT as applet), then you can control the closing of the client by using this component.

The CLIENTCLOSER typically is positionned in the outmost page of your application.

There are two functions provided:

1. If the client is requested to be closed by the user (e.g. pressing alt-f4), then the CLIENTCLOSER component blocks the closing of the client and calls its ACTIONLISTENER method on server side. The server side application gets notified about the close-request of the user. - In principal now the server side application can do "anything it wants", e.g. show some popup information to warn the user, that data might get lost.

PLEASE NOTE: this function 1. is NOT available within the RISC-HTML client environment! If you want to interrupt the closing of the client there, the only possibility is to use query parameter "ccconfirmexit=true".

2. The server side application may trigger the actual closing of the client using attribute CLOSECLIENTTRIGGER. When this attribute is triggered, then the client will be definitely closed (without the processing described in 1.) In the RISC-HTML client environment this means that the client will navigate to an "empty URL". This URL by default is the URL "about:blank", but can be explicitly set by using attribute CLOSECLIENTURL.

1. and 2. in principal are independent from one another. Typically of course, the notification of a close-request (1.) at the end somehow is transferred into a corresponding actual closing of the client (2.).

 