Hi all,
I'm a beginner with Izpack and I wonder if there is a simple solution (without diving into custom panel development) to create InstallationGroupPanel, that contains a list of selectable packs (radio buttons) which depends of a previously selected variable. Let's go for more details:
In install.xml:
...
<!-- see userInputSpec.xml -->
<panel classname="UserInputPanel"/>
<!-- allow user to select one pack from a list of packs, each InstallationGroupPanel should contain a different list of packs -->
<panel classname="InstallationGroupPanel" id="id1"/>
<panel classname="InstallationGroupPanel" id="id2"/>
<panel classname="InstallationGroupPanel" id="id3"/>
<panel classname="PacksPanel"/>
<panel classname="InstallPanel"/>
...
In userInputSpec.xml:
...
<field type="radio" variable="var1">
<description align="left" txt="Select :"/>
<spec>
<!-- this selection should determine which list of pack to display on the next panel -->
<choice txt="choix 1" value="c1" set="true" />
<choice txt="choix 2" value="c2" />
<choice txt="choix 3" value="c3" />
</spec>
</field>
...
In condition.xml:
...
<conditions>
<condition type="variable" id="cond1">
<name>var1</name>
<value>c1</value>
</condition>
<condition type="variable" id="cond2">
<name>var1</name>
<value>c2</value>
</condition>
<condition type="variable" id="cond3">
<name>var1</name>
<value>c3</value>
</condition>
<-- This should display the InstallationGroupPanel related to previous selection -->
<panelcondition panelid="id1" conditionid="cond1"/>
<panelcondition panelid="id2" conditionid="cond2"/>
<panelcondition panelid="id3" conditionid="cond3"/>
</conditions>
...
In fact, it seems that I missed something. I can't define a precise list of packs to display based of the user selection.
How could you determine the content of each InstallationGroupPanel (pack list) and display the list that correspond to the value selected by user?
Could you help me find the right way to do it ?
Waiting your answer, thanks in advance.