Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added reference to Miles Tjandrawidjaja

This feature provides a way to extend the functionality of IzPack with your own code that will be run as part of an IzPack panel.

The custom code must be included as a dependency in the pom that builds the complierinstaller.

<dependencies>
<dependency>
<groupId>com.example</groupId>
<artifactId>custom-components</artifactId>
<version>${custom.components.version}</version>
</dependency>
</dependencies>

...

<panel classname="UserInputPanel" id="creature.panel">
<!--Print out the variables saved by the custom field -->
    <actions>
        <action stage="postvalidate" classname="com.example.action.PrintCustomFields"/>
    </actions>
</panel>


This article was inspired by the work done by Miles Tjandrawidjaja and the code example is entirely based on his code.