Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor

...

Attribute

Usage

RequiredDefault Value
variableDefines the variable that will hold the number of rows submitted.Yes 

minRow

Defines the minimum amount of rows that must be displayed.
This value should be less than or equal to the value in maxRow.
No1

maxRow

Defines the maximum amount of rows that must be displayed.
This value should be greater than or equal to the value in minRow.

No5

conditionid

If the condition evaluates to show this field, otherwise hide this field.NoEvaluates to true if undefined

...

Code Block
languagexml
titleExpand to see UserInputSpec.xml
collapsetrue
<field id="activemq.connection.panel.title" type="title"/>
<field align="left" id="activemq.connection.description" type="staticText"/>
<field type="space"/>
<field maxRow="10" minRow="1" type="custom" variable="activemq.connection.count">
  <spec>
    <col>
      <field type="rule" variable="activemq.connection.address">
        <spec default="tcp://localhost:7000" id="activemq.connection.url.label" layout="O:5:U :// O:15:U : N:5:5" resultFormat="displayFormat"/>
      </field>
      <validator class="com.izforge.izpack.panels.userinput.validator.UniqueValidator" id="activemq.connection.host.unique"/>
    </col>
  </spec>
</field>

In the above example, the active variable values take precedence over the values from the default attribute for prefilled values.

The default value is always the same for each row, the value of a preset variable can be specific to each row.

I'll add this example to the documentation and will later remove this comment.Screenshot of the panel resulting from this example:

Image Added