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

...

It evaluates all conditions which ID start with "conditionvalidator". ", if In case one of them evaluates to false , then the panel switching is prevented.

Code Block
titleData Validator Example
languagehtml/xml
<conditions>
    <condition type="or" id="conditionvalidator.iscompatibleupgrade">
        <condition type="ref" refid="isNew"/>
        <condition type="ref" refid="isCompatibleUpgrade"/>
    </condition>
    ...
</conditions>

<panels>
    ...
    <panel classname="TargetPanel">
      <validator classname="com.izforge.izpack.installer.validator.ConditionValidator"/>
    </panel>
    ...
</panels>

The messagebox popping up if the condition is not fulfilled can be translated:

Code Block
titleinstall.xml
languagehtml/xml
<resources>
    <res id="CustomLangPack.xml_eng" src="i18n/customLangPack.xml_eng"/>
    <res id="CustomLangPack.xml_deu" src="i18n/customLangPack.xml_deu"/>
    ...
</resources>
Code Block
titlecustomLangPack.xml_eng
<langpack>
    <str id="conditionvalidator.iscompatibleupgrade.error.message" txt="Update is not compatible with the chosen previous installation"/>
</langpack>