Common behavior
...
If the name of a dynamic variable is also used in a variable definition in the <variables> section it , the <variable>
is always used to set a the default value of for the dynamic variable with the same name rather than unsetting it during refreshing if there are no further conditions matching in the <dynamicvariables> section for that variable. For comparison with the <variables> section - a dynamic . A dynamic variable behaves exactly like a "normal" IzPack variable with a static key-value pair if when it has set the attribute checkonce="true"
.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<dynamicvariables> <variable name="thechoice" value="fallback value" /> <variable name="thechoice" value="choice1" condition="cond1" /> <variable name="thechoice" value="choice2" condition="cond2" /> </dynamicvariables> |
A The value of a dynamic variable is overridden , if there is another a subsequent definition of the same name after that one, refreshing sets the values in the order of definition.variable with a condition
evaluating to "true".
See following section on the precedence rules for more details.
Lifecycle states
Since: 5.0.0 RC5
...
In addition, if the user goes back through the panel sequence by pressing Previous, they must reach the first panel containing the variable before it will be unfrozen.
In this way, the variables can be reset to the proper values based on new conditions when the user navigates backward and forward multiple times and inputs new choices.
Global precedence for dynamic variable assignments
...