[izpack-devel] User Input Panel
Chris McGonagle
Chris at fbbt.co.uk
Mon Jan 23 17:37:19 CET 2006
Hi all,
I've had a good look at the UserInputPanel and I used the instanceNumber
variable for this task. It works absolutely brilliantly.
Thanks Fabrice for pointing me in the correct direction!! All I need to
do now is to get a good Ant script to cycle through all the variables -
not difficult, just needs to be thought out ...
Thanks again!!
Chris
-----Original Message-----
From: izpack-devel-admin at berlios.de
[mailto:izpack-devel-admin at berlios.de] On Behalf Of Chris McGonagle
Sent: 22 January 2006 15:03
To: izpack-devel at berlios.de
Subject: RE: [izpack-devel] User Input Panel
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.
Cheers
Chris
-----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
Hi,
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
custom
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
custom
panel (wihch gives you your number whatsoever...) and use the
skippanel()
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.
cheers,
fabrice
----- 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?
Cheers
--
Chris McGonagle
_______________________________________________
izpack-devel mailing list
izpack-devel at lists.berlios.de
http://lists.berlios.de/mailman/listinfo/izpack-devel
_______________________________________________
izpack-devel mailing list
izpack-devel at lists.berlios.de
http://lists.berlios.de/mailman/listinfo/izpack-devel
More information about the izpack-devel
mailing list