United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5080623 : SubMenu option in jnlp file is not working as expected in solaris Gnome

Details
Type:
Bug
Submit Date:
2004-07-30
Status:
Resolved
Updated Date:
2005-03-16
Project Name:
JDK
Resolved Date:
2005-03-16
Component:
deploy
OS:
solaris_9
Sub-Component:
webstart
CPU:
other
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
Bug Description:
----------------
SubMenu option in jnlp file is not working as expected in solaris Gnome.
The menu is not created completely and displayed in solaris Gnome but its working fine in windows.

Jdk-Info:
---------
java version "1.5.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b59)
Java HotSpot(TM) Client VM (build 1.5.0-beta3-b59, mixed mode)

Steps to reproduce:
-------------------
1. Install or extract jre1.5.0 b59 on any solaris_9 testing system.
2. Invoke JavaControlPanel (jre1.5.0/bin/ControlPanel) and Select "Advance" tab and in "ShortCut Creation" property select "Allow Always" option and Apply and close.
2. Run following jnlp from http://client20.india.sun.com:8081/JK/ShortCut/ShortCut5.jnlp
3. PopUp Window will appear asking to grand permission for certificate issued by suresh click yes.
4. Check the ShortCut in Gnome Menu/Applications

only Mytest2 will appear

Actually it should be

My Test App ----- MyTest1 --- Mytest2 ----  UpdateReadMe on Soalris 1a
					    UpdateReadMe on Solaris 1b
					    UpdateReadMe on Solaris 1c

but now it displayes only MyTest2 on application Menu,same problem is not reproducible in WindowsXP Home.

###@###.### 2004-07-30

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-08-31
EVALUATION

The published documentation for the submenu attribute says only:
(from dev guide):
The shortcut element can contain the optional online attribute, and the two optional sub-elements, desktop and menu.
(from jnlp specification):
The optional submenu attribute can be used to indicate an application's preference for where to place the menu item, and can contain any string value.

The actual implementation is that the submenu element must be a string that can be used as a submenu in the native system.  To achive multiple nested submenu's, this may require seperate strings for seperate platforms.
On windows, you can specify multiple nested sub-menus by seperating them with a slash ("/")  the example given uses "My Test App/MyTest1/Mytest2" . this works as expected on Windows, but not on Solaris Gnome.

We have to find out if the Gnome implementation can be made to install multiple sub-menus using some other format, and if so, document that it may be necessary to uses OS specific information block such as:
<information>
    <shortcut online="true">
      <menu submenu="...GNome form ..."/>
    </shortcut>
</information>
<information os="Windows">
    <shortcut online="true">
      <menu submenu="My Test Apps/MyTest1/MyTest2"/>
    </shortcut>
</information>

If it is not possible with the current Gnome implementation, we need to doc that and fix in mustang.
We may need to doc this anyway since characters allowed in path elements may vary from os to os.


###@###.### 2004-07-30
                                     
2004-07-30



Hardware and Software, Engineered to Work Together