[izpack-users] skipping panels in conditions

panneer selvam panneer.mca at gmail.com
Wed Sep 19 06:50:47 CEST 2007


On 9/18/07, Dennis Reil <Dennis.Reil at reddot.de> wrote:
> You'll have to define all your packs  and userinputpanel with an
> id-attribute.
>
> Then you'll write something like this in your conditions.xml:
>
>
>
> <conditions>
>
>   <condition type="packselection" id="pack1selected">
>
>     <packid>pack1</packid>
>
>   </condition>
>
>     <panelcondition panelid="userinputpanel1"
> conditionid="pack1selected" />
>
>     <panelcondition panelid="userinputpanel2"
> conditionid="pack1selected" />
>
> </conditions>
>
>
>
> The conditions.xml has to be referenced as resource in you install.xml:
>
>
>
> <res id="conditions.xml" src="PATH_TO_YOUR conditions.xml" />
>
>
>
> So this means, that the panel with id userinputpanel1 and
> userinputpanel2 are only shown if condition with id pack1selected is
> evaluated to true.
>
> The type of this condition is packselection, which is true, if the pack
> with id pack1 is selected.
>
>
>
> Regards,
>
>    Dennis
>
>
>
> Von: izpack-users-bounces at lists.berlios.de
> [mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von panneer
> selvam
> Gesendet: Dienstag, 18. September 2007 14:53
> An: izpack-users at lists.berlios.de
> Betreff: [izpack-users] skipping panels in conditions
>
>
>
>
> i want to skip some custom panels according to the user's selection in
> PacksPanel.
>
> For ex: i have 3 UserInputPanels. In PacksPanel i'm displaying 2
> packages to install. pack1 is required and pack2 is optional. if user
> selected pack2 i want to go ahead with all the 3 UserInputPanels. In
> other case, (user deselected pack2) i want to skip UserInputPanel1 and
> 2, and directly i should trigger UserInputPanel3. can anyone help me how
> to do that?
>
> and i dont know how to use the conditions.xml,
> please anyone send the documents about conditions.............
>
>


Thank u very much Dennis......... Now it is working perfectly.......


More information about the izpack-users mailing list