Skip to main content

[JAVAHELP] JH 2.0 - won't open help from menu item

No replies
Anonymous

I replaced JavaHelp 1.1.3 with JavaHelp 2.0 for an application. The
application has an item on the Help menu that is supposed to open the help
at the top level. The menu item is looking for the help ID "top", which
does not exist in the map file.

With JavaHelp 1.1.3, this help ID brought up the help at the top level. I
think it just used the home ID in the helpset file. But with JavaHelp 2.0,
no help at all is displayed.

I know I can add a help ID "top" to the map file, but we have several help
systems and I probably can't do it for all of them. Why has this behavior
changed from JavaHelp 1.1.3 to 2.0?

I'm pasting the error messages below.

Thanks for your help.

Ed
eglennon@portal.com

javax.help.BadIDException: Not valid ID: top
at javax.help.Map$ID.create(Map.java:126)
at javax.help.CSH.displayHelp(CSH.java:743)
at javax.help.CSH.access$200(CSH.java:80)
at javax.help.CSH$DisplayHelpFromSource.actionPerformed
(CSH.java:1668)
at com.portal.appcenter.HelpAction.actionPerformed
(HelpAction.java:64)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(Unknow
n Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseRelease
d(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.