Password Input Field
Description
The password field allows masked user input to accept password values. Normally, a spec is created with 2 'pwd' elements to allow equality validation (below) and ensure the user typed the password correctly. The password field also allows multiple validators (see below). This is a very powerful feature for chaining validation operations based on user input.
Example
<field type="password" align="left" variable="the.password">
<spec>
<pwd txt="The Password:" size="25" set=""/>
<pwd txt="Retype Password:" size="25" set=""/>
</spec>
</field>
Hello.
I have a password type input field and a button that checks connection in db after clicking. In the code, in debugging mode, the value installData.GetVariable("db.password") has the old value, not what I wrote in the input field, but field "text" have new value
<field type="text" variable="db.user"> <description txt="User:"/> <spec txt="User:" size="20" set="${db.user}"/> </field> <field type="password" variable="db.password"> <description txt="password:"/> <spec> <pwd txt="pasword:" size="20" set="${db.password}"/> </spec> </field> <field type="button"> <spec id="connection.test.button" successMsg="connection.test.success"> <run class="com.tir.izpack.actions.check.DatabaseConnectionTestAction"> <msg name="error" id="db.test.error"/> </run> </spec> </field>