We need you!

Icon

The IzPack documentation needs work, and you are invited to edit it!

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Description

The combo box provides essentially the same functionality as do the radiobutton input field, just in a different presentation stile. The advantage of the combo box is that it is easier to deal with a long list of choices.

Example

 Beginning from IzPack 5 you can also make single choice elements visible or unvisible depending on conditions: 

Code Block
titleExample
languagehtml/xml
<field type="combo" variable="database.operation">
  <description align="left" txt="Database Operation" id="database.operation.panel.field.description"/>
  <spec>
    <choice txt="Update existing database (without admin permission)"
            id="database.operation.panel.radio.choice.upgrade.label"
            value="update"
            conditionid="database.operation.panel.radio.choice.upgrade.enabled"/>
    <choice txt="Structure creation only (without admin permission)"
            id="database.operation.panel.radio.choice.create_structure.label"
            value="create_structure"
            conditionid="database.operation.panel.radio.choice.create_structure.enabled"/>
    <choice txt="Instance and structure creation (requires admin permission)"
            id="database.operation.panel.radio.choice.create_instance_and_structure.label"
            value="create_instance_and_structure"
            conditionid="database.operation.panel.radio.choice.create_instance_and_structure.enabled"/>
    <choice txt="Configure database later"
            id="database.operation.panel.radio.choice.noop.label"
            value="noop"
            conditionid="database.operation.panel.radio.choice.noop.enabled"/>
  </spec>
</field>