[izpack-users] panelcondition ?
Dennis Reil
Dennis.Reil at reddot.de
Mon Mar 12 09:01:06 CET 2007
Hi,
I think, the problem is the $ in the conditions.xml:
><condition type="variable" id="showmypathpanel">
> <name>$radioSelection</name>
> <value>yes</value>
> </condition>
You just have to give the plain variable name there.
Regards,
Dennis
> in a userinputpanel i defined 2 panels with id path.panel1 and path.panel2
> like this:
> <userInput>
> <panel order="0" id="path.panel1" >
> <field type="staticText" align="left"
> txt="Do you want to install OpenOffice.org ?"
> id="staticText.text"/>
> <field type="divider" align="center"/>
> <field type="divider" align="center"/>
>
> <field type="radio" variable="radioSelection">
> <description align="left"
> id="description.radio"/>
>
> <spec>
> <choice txt="no" id="radio.label.1" value="no" />
> <choice txt="yes" id="radio.label.2" value="yes"
> />
> </spec>
> </field>
>
> </panel>
>
> <panel order="1" id="path.panel2" >
> <field type="divider" align="center"/>
> <field type="search" >
>
> <spec txt="Path to OpenOffice root folder :"
> type="directory" result="directory">
> </spec>
> </field>
>
> </panel>
>
>
>
> </userInput>
>
>
> i defined a resource in install.xml <res id="conditions.xml"
> src="conditions.xml" />
>
> the file conditions.xml is :
>
> <?xml version="1.0" ?>
> <conditions>
> <condition type="variable" id="showmypathpanel">
> <name>$radioSelection</name>
> <value>yes</value>
> </condition>
> <panelcondition conditionid="showmypathpanel"
> panelid="path.panel2" />
> </condition>
>
> and finally in install.xml i did this :
> <panels>
> <panel classname="UserInputPanel" id="path.panel1" />
> <panel classname="UserInputPanel" id="path.panel2" />
> <panel classname="ProcessPanel"/>
> <panel classname="FinishPanel"/>
> </panels>
>
> the problem : whether i select yes or no radio buttons i always get the
> process panel i never get the path.panel2 ...
> am i doing something wrong ?
> please help!
>
>
>
> No virus found in this outgoing message
> Checked by PC Tools AntiVirus (3.1.0.10 - 9.065.007).
> http://www.pctools.com/anti-virus/
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
--
More information about the izpack-users
mailing list