Combobox Input Field
Description
The combo box provides essentially the same functionality as do the radiobutton input field, just in a different presentation style. 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:Â
<panel id="panel.dboperation" summaryKey="key.dboperation.title">
<field type="title" txt="Database operation selection" id="text.dboperation.title" />
<field type="staticText" align="left" txt="Choose the preferred database action:" id="text.dboperation.description" />
<field type="space" />
<field type="combo" variable="db.operation" summaryKey="key.dboperation">
<spec>
<choice txt="Build instance as administrator" value="create_instance" id="text.dboperation.create_instance" conditionid="Install"/>
<choice txt="Rebuild instance as administrator" value="recreate_instance" id="text.dboperation.recreate_instance" conditionid="Install"/>
<choice txt="Build structure as existing user" value="create_structure" id="text.dboperation.create_structure" conditionid="Install"/>
<choice txt="Rebuild structure as existing user" value="recreate_structure" id="text.dboperation.recreate_structure" conditionid="Install"/>
<choice txt="Don't touch, already manually installed" value="create_none" id="text.dboperation.create_none" conditionid="Install"/>
<choice txt="Update existing instance as administrator" value="update_instance" id="text.dboperation.update" conditionid="Update"/>
<choice txt="Update existing structure as existing user" value="update_structure" id="text.dboperation.update" conditionid="Update"/>
<choice txt="Don't touch, already manually updated" value="update_none" id="text.dboperation.update_none" conditionid="Update"/>
<choice txt="Drop instance as administrator" value="drop_instance" id="text.dboperation.drop_instance" conditionid="Uninstall"/>
<choice txt="Drop structure as existing user" value="drop_structure" id="text.dboperation.drop_structure" conditionid="Uninstall"/>
<choice txt="Don't touch, drop manually later" value="drop_none" id="text.dboperation.drop_none" conditionid="Uninstall"/>
</spec>
</field>
</panel>
Â