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: Adding information on description tags for directory chooser

...

Code Block
languagehtml/xml
<field type="dir" align="left" variable="existing.jboss.home">
  <spec txt="" size="25" set="$INSTALL_PATH$FILE_SEPARATOR${jboss.version}" mustExist="false"/>
</field>

 

The directory supports the following two special attributes for the <spec> element:mustExist - optional (default: true) Specifies

Name

Required

Description

Value

mustExist

no

Specifies whether or not the selected path must be an existing directory.

...

true, false default: true

create

no

Specifies whether or not the selected directory should be created if it does not exist. (requires mustExist=

...

false)

true, false default: false

 

The directory supports a <description> element that can be used to provide information about the purpose of the directory field.
See Fields documentation for more detail.

Code Block
languagehtml/xml
<field type="dir" align="left" variable="encrypted.dir">
 <description id="encrypted.dir.info" txt="Which directory would you like to be encrypted?" />
 <spec txt="" size="25" set="" mustExist="true"/>
</field>

 

Messages for the directory field can be customized by creating a custom lang pack and overriding the following values (attribute values wrapped for readability):

...