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: simplified and cleaned up English

There can be defined conditions, for which a The change to the next panel in during the installation wizard is allowedcan be controlled using validators.

This can be achieved by a nested definition into in the panel definition od in the installer descriptor:

Code Block
titleData Validator Example
languagehtml/xml
<panels>
    ...
    <panel classname="TargetPanel">
      <validator classname="com.izforge.izpack.installer.validator.ConditionValidator"/>
    </panel>
    ...
</panels>

There can be used built Built-in validators or user-defined data validators can be used.

There can be any number of validators nested in a <panel> definition. All of the validators with a condition that evaluates to true, must validate successfully to allow a final success.

A <validator> tag takes the following attributes:

AttributeDescriptionValuesRequired
className

Fully qualified classname of an Validator implementation.

This can be a built-in validator or one from additional libraries in the <jar> tag.

Stringyes
conditionCondition for applying this validator. If this condition evaluates false, the according validator is ignoredStringno