jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • IzPack
  • IZPACK-270

Using multiple HTMLInfoPanel fails (using ID)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 4.2.0
  • Fix Version/s: None
  • Component/s: Panels
  • Labels:
    None
  • Environment:
    Windows XP

Description

I have tried using multiple HTMLInfoPanels each having a separate ID like so:

<resources>
<res id="HTMLInfoPanel.donate" src="donate.html"/>
<res id="HTMLInfoPanel.readme" src="readme.html"/>
</resources>

<panels>
<panel classname="HTMLLicencePanel" id="donate" />
<panel classname="HTMLLicencePanel" id="readme" />
</panels>

This failed, showing empty pages for both panels. Changing the code like below does work but does not allow me to use multiple HTMLInfoPanels:

<resources>
<res id="HTMLInfoPanel.info" src="readme.html"/>
</resources>

<panels>
<panel classname="HTMLLicencePanel" />
</panels>

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Anthonin Bonnefoy added a comment - 06/Feb/09 11:26 AM

Hello Robert,
I tried to use multiple HTMLInfoPanel and it worked without problems.
Did you mean
<panels>
<panel classname="HTMLInfoPanel" id="donate" />
<panel classname="HTMLInfoPanel" id="readme" />
</panels>
instead of
<panels>
<panel classname="HTMLLicencePanel" id="donate" />
<panel classname="HTMLLicencePanel" id="readme" />
</panels>
?
Can you give more informations on your problems?
Thanks in advance.

Show
Anthonin Bonnefoy added a comment - 06/Feb/09 11:26 AM Hello Robert, I tried to use multiple HTMLInfoPanel and it worked without problems. Did you mean <panels> <panel classname="HTMLInfoPanel" id="donate" /> <panel classname="HTMLInfoPanel" id="readme" /> </panels> instead of <panels> <panel classname="HTMLLicencePanel" id="donate" /> <panel classname="HTMLLicencePanel" id="readme" /> </panels> ? Can you give more informations on your problems? Thanks in advance.
Hide
Permalink
Earl Hood added a comment - 10/Feb/09 9:19 PM

I get the same problem. The following is a snippet of the installation
file I use. In this example, I only create a single HTMLInfoPanel, but
try to use the id attribute:

<resources>
<res id="CustomLangpack.xml_eng"
src="install/langpack.eng.xml"/>
<res id="shortcutSpec.xml"
src="install/Win_shortcutSpec.xml"/>
<res id="HTMLInfoPanel.copyright"
src="install/install-info.html"/>
<res id="HTMLLicencePanel.licence"
src="install/license.html"/>
<res id="TargetPanel.dir.windows"
src="install/default-dir-win.txt"/>
<res id="TargetPanel.dir.unix"
src="install/default-dir-unix.txt"/>
</resources>

<panels>
<panel classname="HelloPanel"/>
<panel classname="HTMLInfoPanel" id="copyright"/>
<panel classname="HTMLLicencePanel"/>
<panel classname="TargetPanel"/>
<panel classname="PacksPanel"/>
<panel classname="ShortcutPanel"/>
<panel classname="SummaryPanel"/>
<panel classname="InstallPanel"/>
<panel classname="SimpleFinishPanel"/>
</panels>

When executed from the command-line, the following exception:

com.izforge.izpack.installer.ResourceNotFoundException: Cannot find named Resource: '/res/HTMLInfoPanel.info' AND '/res/HTMLInfoPanel.info_eng'
at com.izforge.izpack.installer.ResourceManager.getLanguageResourceString(Unknown Source)
at com.izforge.izpack.installer.ResourceManager.getURL(Unknown Source)
at com.izforge.izpack.panels.HTMLInfoPanel.loadHTMLInfoContent(Unknown Source)
at com.izforge.izpack.panels.HTMLInfoPanel.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.izforge.izpack.installer.InstallerFrame.loadPanels(Unknown Source)
at com.izforge.izpack.installer.InstallerFrame.<init>(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.loadGUI(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.access$100(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
java.io.IOException: invalid url
at javax.swing.JEditorPane.setPage(JEditorPane.java:393)
at com.izforge.izpack.panels.HTMLInfoPanel.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.izforge.izpack.installer.InstallerFrame.loadPanels(Unknown Source)
at com.izforge.izpack.installer.InstallerFrame.<init>(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.loadGUI(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller.access$100(Unknown Source)
at com.izforge.izpack.installer.GUIInstaller$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

This was executed against IzPack 4.2.0, using standalone-compiler.jar.

Attempting multiple panels do not work either.

Show
Earl Hood added a comment - 10/Feb/09 9:19 PM I get the same problem. The following is a snippet of the installation file I use. In this example, I only create a single HTMLInfoPanel, but try to use the id attribute: <resources> <res id="CustomLangpack.xml_eng" src="install/langpack.eng.xml"/> <res id="shortcutSpec.xml" src="install/Win_shortcutSpec.xml"/> <res id="HTMLInfoPanel.copyright" src="install/install-info.html"/> <res id="HTMLLicencePanel.licence" src="install/license.html"/> <res id="TargetPanel.dir.windows" src="install/default-dir-win.txt"/> <res id="TargetPanel.dir.unix" src="install/default-dir-unix.txt"/> </resources> <panels> <panel classname="HelloPanel"/> <panel classname="HTMLInfoPanel" id="copyright"/> <panel classname="HTMLLicencePanel"/> <panel classname="TargetPanel"/> <panel classname="PacksPanel"/> <panel classname="ShortcutPanel"/> <panel classname="SummaryPanel"/> <panel classname="InstallPanel"/> <panel classname="SimpleFinishPanel"/> </panels> When executed from the command-line, the following exception: com.izforge.izpack.installer.ResourceNotFoundException: Cannot find named Resource: '/res/HTMLInfoPanel.info' AND '/res/HTMLInfoPanel.info_eng' at com.izforge.izpack.installer.ResourceManager.getLanguageResourceString(Unknown Source) at com.izforge.izpack.installer.ResourceManager.getURL(Unknown Source) at com.izforge.izpack.panels.HTMLInfoPanel.loadHTMLInfoContent(Unknown Source) at com.izforge.izpack.panels.HTMLInfoPanel.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.izforge.izpack.installer.InstallerFrame.loadPanels(Unknown Source) at com.izforge.izpack.installer.InstallerFrame.<init>(Unknown Source) at com.izforge.izpack.installer.GUIInstaller.loadGUI(Unknown Source) at com.izforge.izpack.installer.GUIInstaller.access$100(Unknown Source) at com.izforge.izpack.installer.GUIInstaller$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) java.io.IOException: invalid url at javax.swing.JEditorPane.setPage(JEditorPane.java:393) at com.izforge.izpack.panels.HTMLInfoPanel.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.izforge.izpack.installer.InstallerFrame.loadPanels(Unknown Source) at com.izforge.izpack.installer.InstallerFrame.<init>(Unknown Source) at com.izforge.izpack.installer.GUIInstaller.loadGUI(Unknown Source) at com.izforge.izpack.installer.GUIInstaller.access$100(Unknown Source) at com.izforge.izpack.installer.GUIInstaller$2.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) This was executed against IzPack 4.2.0, using standalone-compiler.jar. Attempting multiple panels do not work either.

People

  • Assignee:
    Unassigned
    Reporter:
    Robert Jan van der Waals
Vote (1)
Watch (1)

Dates

  • Created:
    25/Jan/09 5:11 AM
    Updated:
    10/Feb/09 9:19 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.