United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7073627 : Eliminate hardcoded callback javascript function name regarding installing JRE/FX via DT

Details
Type:
Bug
Submit Date:
2011-08-01
Status:
Closed
Updated Date:
2011-11-28
Project Name:
JDK
Resolved Date:
2011-11-28
Component:
deploy
OS:
windows_xp
Sub-Component:
deployment_toolkit
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7-client
Fixed Versions:
7u2 (b03)

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
Current implementation of 7052499 has a hardcoded javascript function name "OnJREInstall" for the DT to callback to javascript for reporting install status for JRE and FX installation.

This CR is to eliminate the hardcoded javascript function name and to allow developer to specify any function name in javascript for DT to callback.

                                    

Comments
EVALUATION

Added optional arg which is a reference to the javascript callback function to the
installJRE, installLatestJRE, and installJavaFX DT functions.

e.g. developer can pass in a javascript function to the installJRE function as follows:

        function OnJREInstall( installStatus) {
            showValue(installStatus);
        }

        deployJava.installJRE("1.6.0_20", OnJREInstall);

the existing way without the optional arg still works.
                                     
2011-08-13



Hardware and Software, Engineered to Work Together