[izpack-users] UserInputPanel questions + NPE on CVS
    Hal Vaughan 
    hal at thresholddigital.com
       
    Mon Jan 30 17:05:53 CET 2006
    
    
  
On Monday 30 January 2006 10:31, Darren Govoni wrote:
> Good point! Well, our system is not really an end user system, but
> unfortunately our current install is a manual mess with things going
> to numerous locations, so for our purposes being able to control that is
> best as possible is our only hope.
>
> I thought about using multiple UserInputPanels, but need to read up how
> to do that. Am I allowed to specify more than
> one input spec such that each userinputpanel has its own input spec?
It's fairly easy to do.  I can't remember the exact format, but essentially 
you add an element around each panel like:
<userinputpanel order="0">
	...
	Config info for first UI Panel
	...
<userinputpanel/>
<userinputpanel order="1">
	...
	Config info for second UI Panel
	...
<userinputpanel/>
I don't remember the exact syntax, but it's easy to set up.  I'm working on 
something similar, currently called SimplePanelSpec, that, if accepted by the 
development team, would use the same formatting and implementation to allow 
more multiple instances of panels.
To get the exact style for UI Panel, you'll have to check the docs under 
UserInputPanel.
> The search field seemed to work for me once I changed the example field to:
>
> <field type="search" variable="SCRIPTS_HOME">
>   <description align="left" txt="desc." id="scripts.home"/>
>   <spec txt="Scripts home:" type="directory" result="directory">
>   </spec>
> </field>
>
> since I only want to select directories. However, it 'id' and 'txt'
> fields are mixed up and the current izpack-src trunk is severely
> damaged it would seem.
So you're basically using it as multiple TargetPanels?
Hal
    
    
More information about the izpack-users
mailing list