Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed password spec in example - as it was, kept installer from running.

When you need to capture user input that will be available to your installer then you need to use the UserInputPanel.

This panel allows you to prompt the user for data that you can use later in the installation process.

...

Code Block
<izpack:userinput version="5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:izpack="http://izpack.org/schema/userinput" xsi:schemaLocation="http://izpack.org/schema/userinput http://izpack.org/schema/5.0/izpack-userinput-5.0.xsd">
  <panel id="proxypanel">
    <field type="staticText" align="left" txt="Enter the Information required to connect to your proxy" id="input.title"/>
    <field type="text" variable="proxyaddress">
      <spec txt="Proxy Host:" id="input.proxy" size="25" set=""/>
    </field>
    <field type="text" variable="proxyPort">
      <spec txt="Proxy Port:" id="input.port" size="6" set=""/>
    </field>
    <field type="text" variable="proxyUsername">
      <spec txt="Proxy Username:" id="input.portusername" size="20" set=""/>
    </field>
    <field type="password" variable="proxyPassword">
	  <spec>
    <spec    <pwd txt="Proxy Password:" id="input.port" size="20" set=""/>
      </spec>	
    </field>
  </panel>
</izpack:userinput>

...