[izpack-users] How to modify userinputpanel according to anexecutable response
macke
maier at isys.uni-klu.ac.at
Mon Oct 30 10:51:52 CET 2006
Hi Klaus,
thx anyway for every help you give. I understand that with the db stuff, no
problem.
In the meantime I found my own solution for that. To incorporate with a DB
was not
the problem. I used the ProcessPanel for that and call an extra class for
this work
(executeclass). The problem I had, was how to validate the whole userinput
for db
communication I get by UserInputPanels before, to guarantee that everything
will work.
My first solution in the moment was to extend the validation classes and to
assign beside
the ProcessingClient also the whole InstallData. A own validation class
called for example
by the last field of all of my UserInputPanels validates the variables set
in InstallData and
for example tries to establish a db connection or validates if the db has
the right version
or whatever. To give better feedback in such cases, my extended validation
classes return
beside the boolean also a message. All in all not the best solution, but in
the moment
adequate for me.
Do you have experience with the ProcessPanel/ProcessPanelWorker and the
executeclass
ability? I wrote an generic class, which reads from a assigned file the sql
statements and
executes them. All in all I call this class by ProcessPanel.Spec.xml 13
times to executing state-
ments of 13 sql-Files. If one file causes an SQLException, in the moment the
next will still
executed. In my blindness I don't know how I can stop all processes which
will follow
if a sql exception will be thrown. How can I tell the ProcessPanel(Worker)
that a process
error occured and that all following processes should not executed?
thx for help from everyone in advance,
Macke
p.s.: izpack is great!
Bartz, Klaus wrote:
>
> Hi Macke,
> unfortunately I cannot give you the DB login stuff. It is more
> complicated, interwoven with other custom panels and custom actions.
> I think I need a week of work or more to make it generic (if
> even possible).
> In the wiki there is an article from Fabrice which describes an
> other way of incorporating DB.
>
> If you write a custom panel, you can validate what you would
> in the method isValidated.
> Look into %IZ_HOME%\\src\lib\com\izforge\izpack\panels
> You can use all panels from there as example. May be starting
> with the HelloPanel (there is a description in it how to use
> the IzPack specific layout manager). In JDKPathPanel you can see
> how to inherit in IzPack, how to get and set variables and how
> to make a panel back drop safty.
> If you like complicated things, look into UserInputPanel.
> Related to the UserInputPanel I can say not more because I use
> it not (I write custom panels).
>
> Cheers
>
> Klaus
>
>
>>-----Original Message-----
>>From: izpack-users-bounces at lists.berlios.de
>>[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of macke
>>Sent: Saturday, October 28, 2006 11:24 AM
>>To: izpack-users at lists.berlios.de
>>Subject: Re: [izpack-users] How to modify userinputpanel according to
>>anexecutable response
>>
>>
>>
>>Hi Klaus!
>>
>>Is it possible to get your solution for testing a DB login? I
>>have to solve
>>a very similar problem.
>>Or is it possible to validate the data of a whole panel like validating
>>field contents? All in all an example for a custom panel would
>>be great.
>>And another question: is it possible to show/read the value of
>>a variable in
>>a userinputpanel set in an userinputpanel before to validate
>>for example if
>>the values are the same? Do you have an idea, how I can do this?
>>
>>thx for help to everyone who may responses,
>>macke
>>
>>
>>
>>Bartz, Klaus wrote:
>>>
>>> Hi Nicolas,
>>> radio Erivan, principle yes, but...
>>> I do not know how todo it with an UserInputPanel.
>>> If I have to solve the problem I would write a custom panel
>>> which does the work. I have a equal solution for testing
>>> right DB login.
>>> But this is really a little bit more work and needs some
>>> knowledge about java and IzPack.
>>>
>>> Cheers
>>>
>>> Klaus
>>>
>>>>-----Original Message-----
>>>>From: izpack-users-bounces at lists.berlios.de
>>>>[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of Nicolas
>>>>FROMENT
>>>>Sent: Wednesday, October 25, 2006 2:59 PM
>>>>To: izpack-users at lists.berlios.de
>>>>Subject: [izpack-users] How to modify userinputpanel according to
>>>>anexecutable response
>>>>
>>>>
>>>>
>>>>Hi all,
>>>>I need to write an userinputpanel with a radiobutton whose
>>>>default is dependent of the return code or display of an
>>>>executable. Is it possible ? Or may I run the executable in a
>>>>script before running install.jar ? In this last case how can
>>>>I pass parameters to install.jar ? -D ?
>>>>
>>>>Thanks !
>>>>
>>>>Nicolas
>>>>
>>>>_______________________________________________
>>>>izpack-users mailing list
>>>>izpack-users at lists.berlios.de
>>>>https://lists.berlios.de/mailman/listinfo/izpack-users
>>>>
>>> _______________________________________________
>>> izpack-users mailing list
>>> izpack-users at lists.berlios.de
>>> https://lists.berlios.de/mailman/listinfo/izpack-users
>>>
>>>
>>
>>--
>>View this message in context:
> http://www.nabble.com/Re%3A-How-to-modify-userinputpanel-according-to-anexecutable-response-tf2507851.html#a7046951
> 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
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
>
>
--
View this message in context: http://www.nabble.com/Re%3A-How-to-modify-userinputpanel-according-to-anexecutable-response-tf2507851.html#a7071589
Sent from the izpack users mailing list archive at Nabble.com.
More information about the izpack-users
mailing list