[izpack-devel] How to set javaprop values in UserInputPanel text field?

Shabnam Banihashem shabnam.banihashem at gmail.com
Wed Jan 30 16:30:25 CET 2008


Dear All,

My installer needs to read default values from a pre-saved file. I
want to read the values from javaprop and show them as default in text
fields. I have defined the following resource at the InstallPanel
needed in UserInputPanel.

<resources>
....
....
<res id="config.properties" src="d:\config.properties" parse="yes"
type="javaprop"/>
....
....
</resources>

The properties file is:

# JMX Domain Name, unique per cluster
jmx.domain=rating
# JMX Server hostname
jmx.host=localhost
# RMI Registry port
jmx.port=8898

At UserInputPanel I have set the value in the text field:

<field type="text" variable="server.host">
     <spec txt="JMX host" id="input.host" size="25" set="${jmx.host}"/>
</field>


Unfortunately the value is not set in the field and I just see
"${jmx.host}" as default :(
I also want to update the values in the config.properties after installation.

Does anybody have a suggestion?


More information about the izpack-devel mailing list