Previous Topic

Book Contents

Book Index

Next Topic

Enabling the Paste Functionality on the Web Client

Valuemation Web Client uses an applet (a small Java program that can be embedded in an HTML page) to provide the paste picture functionality.

The use of applets in Valuemation can be optionally enabled/disabled. Note that when applets are disabled, the functionality of pasting images from the clipboard is completely missing from the Valuemation web client and the control for executing the action is not present in the view.

Enabling/Disabling the use of applets in Valuemation

The use of applets can be enabled/disabled by setting a parameter in the servlet configuration file web.xml or in the external configuration file vmconfig.properties.

  • Parameter name: allow_applets
  • Possible values:

    True – the use of applets is enabled. This is the default value (also used when parameter is not specified in web.xml).

    False – the use of applets is disabled.

Calling the paste operation in Valuemation for the first time (since opening the web browser) may require confirmation of the applet trustworthiness - the 'Do you want to run this application' dialog gets displayed. Check the 'Do not show this again...' check box and click 'Run' to proceed.

Waiting time for applet loading

For the paste operation, an applet providing the functionality is first loaded. The applet calls a javascript callback method at the end of its initialization to inform Valuemation that it is ready to be used.

It is possible to specify how long Valuemation waits for the applet callback. If the callback is not received within the specified timeout period, applet loading in considered failed.

The timeout is configured using vmconfig.properties parameter 'waitForAppletInitCallbackTimeout'.

  • To specify how long (in seconds) Valuemation waits for the applet callback, open the vmconfing.properties file and set the 'waitForAppletInitCallbackTimeout' parameter value. Default timeout used by standard Valuemation is 15 seconds.
  • Setting 'waitForAppletInitCallbackTimeout' = 0 disables waiting for the callback, in which case Valuemation itself would periodically check if the applet is loaded. (This is deprecated behaviour which should no longer be used.)

See Also

Pictures in Views

Customizing a View with Pictures

Editing the Attached Pictures Viewer's label

Attaching Pictures