[izpack-devel] User Input Panel

Chris McGonagle Chris at fbbt.co.uk
Sun Jan 22 16:02:35 CET 2006

Hi Mirodb,

Right, I've created a Custom Panel successfully which adds a new
variable into the idata object.

Seeing as the UserInputPanel can do all that I need, can I now modify
this slightly to read this variable and read the current panel number
that it is on, to skip if necessary?

How would I read which panel that the UserInputPanel is on?  This is
passed in somehow surely, as it knows which XML elements to read from
the file.


-----Original Message-----
From: izpack-devel-admin at berlios.de
[mailto:izpack-devel-admin at berlios.de] On Behalf Of Miraodb
Sent: 20 January 2006 12:32
To: izpack-devel at berlios.de
Subject: Re: [izpack-devel] User Input Panel


this is quite common need indeed but no worries.
This can't be done with a basic installation. You'll have to go for a
panel which would derive the panelactivate() method.

I see few ways to do it.
One would be to set a bunch of panels (could be userinputs... or custom
panels) in the install.xml in the right order and then use the first
panel (wihch gives you your number whatsoever...) and use the
method to show only the panels you need.

something like

if number = xx then skippanel(this); skippanel(that)

this is not pure code ;) just a hint on how you could do it.
check out the docu for custom panels. basically they all have to extend
izpanel and there you can do whatever yo want.

----- Original Message ----- 
From: "Chris McGonagle" <Chris at fbbt.co.uk>
To: <izpack-devel at lists.berlios.de>
Sent: Friday, January 20, 2006 1:07 PM
Subject: [izpack-devel] User Input Panel

Hi all,

First of all, an apology if this has already been tackled before - I
haven't been able to find it.  Basically, I would like to have a User
Input Panel ask how many instances need to be installed i.e. a number,
then depending on this number, izPack will display more User Input
Panels to collect even more information for each instance.

So I need the installer to be partly dynamic, being able to change on
the response that a user gives and display more or less UserInputPanels
depending on the number of instances required.

Does this make sense or should I clarify it further?  Has anyone
attempted anything like this already?


Chris McGonagle

izpack-devel mailing list
izpack-devel at lists.berlios.de

More information about the izpack-devel mailing list