[izpack-users] evaluating panelconditions

Dennis Reil Dennis.Reil at reddot.de
Mon Jun 11 11:13:45 CEST 2007


Hmm .... 
I think, there's a problem in your condition xml, because condition-elements should only allowed before panelconditions elements.

Maybe this already solves your problem.

Regards,
   Dennis

-----Ursprüngliche Nachricht-----
Von: izpack-users-bounces at lists.berlios.de [mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von grb
Gesendet: Freitag, 25. Mai 2007 09:02
An: izpack-users at lists.berlios.de
Betreff: [izpack-users] evaluating panelconditions


Hello list,

i have a question regarding the evalution of conditions, since i was not
able to find anything, that answers
my question. The scenario is the following:
I have two custom panels. In the first (which is called EnvironmentPanel) i
set a variable like this, if a certain radiobutton was selected:

> idata.setVariable("setuptype", radioButtonAlias.isSelected() ? "multinode"
> : "singlenode");

my custom isValidated() method within this panel shows me via
System.out.println(idata.getVariable("setuptype")); that the  value is set
as I expected.

I then have my conditions.xml, that looks like following:

<conditions>
<panelcondition panelid="web" conditionid="multinodesetup"/>
	<condition type="variable" id="multinodesetup">
           <name>setuptype</name>
           <value>multinode</value>
	</condition>
</conditions>

and the panels section of my install.xml:

<panels>
...
<panel classname="EnvironmentPanel"/>
<panel classname="WebServerPanel" id="web"/>
...
<panels>

So the idea behind this all is, that the 'WebServerPanel' should be shown if
the variable "setuptype" in the prior panel (the 'EnvironmenPanel') was set
to "multinode". But it does not work.

The interesting part of it all is that if i put a panel in between the
'EnvironmentPanel' and the 'WebServerPanel', for instance:

<panels>
...
<panel classname="EnvironmentPanel"/>
<panel classname="SomePanel" />
<panel classname="WebServerPanel" id="web"/>
...
<panels>

it works.

So, what am I doing wrong? I know this has to be possible, since Dennis Reil
posted the documentation 
section of conditions a week ago, where a analogical example occurs in the
examples.

Regards





-- 
View this message in context: http://www.nabble.com/evaluating-panelconditions-tf3814543.html#a10798035
Sent from the izpack users mailing list archive at Nabble.com.

_______________________________________________
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