Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The file field supports the following attributes for the <spec> element:

Name

Required

Description

Value

allowEmptyValue

no

If set true, no file has to be selected and the box can be left empty.

true, false default: false

mustExist

no

If set true, the given file is required to exist.

true, false default: true

fileext

no

File extension to be forced. This will be used as mask in the FileChooserDialog.

The fileextdesc attribute must be set additionally to activate this.


fileextdesc

no

The description of the file extension. This will be used in the file extension mask in the FileChooserDialog.
There can be used a translation key, it is translated along with the UserInputPanel translations separately.

The fileext attribute must be set additionally to use this.



Code Block
languagexml
<field type="file" align="left" variable="the.file">
  <spec txt="" size="25" set=""/>
</field>
<field type="staticText" align="left" txt="Existing SSL keystore to import:"/>
<field type="file" align="left" variable="existing.ssl.keystore">
  <spec txt="" size="25" default="$myconfig"/>
</field>

...