/
Combobox Input Field
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>
, multiple selections available,
Related content
Fields
Fields
More like this
Panel Actions
Panel Actions
More like this
Field Processors
Field Processors
Read with this
Radiobutton Input Field
Radiobutton Input Field
More like this
Displaying panels and fields read-only
Displaying panels and fields read-only
Read with this
UserInputPanel
UserInputPanel
More like this