1.1 --- a/examples/Common/Configurator/Resources/config_template.xhtml Tue Jul 19 23:40:05 2005 +0000
1.2 +++ b/examples/Common/Configurator/Resources/config_template.xhtml Wed Jul 20 12:53:04 2005 +0000
1.3 @@ -20,7 +20,7 @@
1.4 <h2>Base System</h2>
1.5
1.6 <p template:element="base-system">Model
1.7 - <select name="{template:multi-field-name('value')}" onchange="requestUpdate('{$application-url}cpu', '{template:multi-field-name('value')}', '{template:other-field-names(../cpu)}', '{template:other-multi-field-names('value', ../cpu)}', '/configuration/details/cpu'); requestUpdate('{$application-url}memory', '{template:multi-field-name('value')}', '{template:other-field-names(../../memory)}', '{template:other-multi-field-names('value', ../../memory/memory-unit)}', '/configuration/memory'); requestUpdate('{$application-url}hard-disks', '{template:multi-field-name('value')}', '{template:other-field-names(../../hard-disks)}', '{template:other-multi-field-names('value', ../../hard-disks/hard-disk)}', '/configuration/hard-disks')">
1.8 + <select name="{template:list-attribute('value')}" onchange="requestUpdate('{$application-url}cpu', '{template:list-attribute('value')}', '{template:other-nodes(../cpu)}', '{template:other-list-attributes('value', ../cpu)}', '/configuration/details/cpu'); requestUpdate('{$application-url}memory', '{template:list-attribute('value')}', '{template:other-nodes(../../memory)}', '{template:other-list-attributes('value', ../../memory/memory-unit)}', '/configuration/memory'); requestUpdate('{$application-url}hard-disks', '{template:list-attribute('value')}', '{template:other-nodes(../../hard-disks)}', '{template:other-list-attributes('value', ../../hard-disks/hard-disk)}', '/configuration/hard-disks')">
1.9 <option template:element="base-system-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.10 value="{@value}"></option>
1.11 </select>
1.12 @@ -29,7 +29,7 @@
1.13 <h2>Processor</h2>
1.14
1.15 <p template:element="cpu">CPU
1.16 - <select template:id="cpu-node" id="{template:this-position()}" name="{template:multi-field-name('value')}">
1.17 + <select template:id="cpu-node" id="{template:this-element()}" name="{template:list-attribute('value')}">
1.18 <option template:element="cpu-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.19 value="{@value}"></option>
1.20 </select>
1.21 @@ -39,19 +39,19 @@
1.22 <div template:element="memory" class="memory">
1.23 <h2>Memory</h2>
1.24
1.25 - <div template:id="memory-node" id="{template:this-position()}">
1.26 + <div template:id="memory-node" id="{template:this-element()}">
1.27 <p template:element="memory-unit">Memory unit
1.28 - <select name="{template:multi-field-name('value')}">
1.29 + <select name="{template:list-attribute('value')}">
1.30 <option template:element="memory-unit-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.31 value="{@value}"></option>
1.32 </select>
1.33
1.34 <input type="submit" value="Remove"
1.35 - name="remove-memory-unit={template:this-position()}" /></p>
1.36 + name="remove-memory-unit={template:this-element()}" /></p>
1.37
1.38 <p>
1.39 <input type="submit" value="Add memory"
1.40 - name="add-memory-unit={template:this-position()}" /></p>
1.41 + name="add-memory-unit={template:this-element()}" /></p>
1.42 </div>
1.43 </div>
1.44 </div>
1.45 @@ -59,19 +59,19 @@
1.46 <div template:element="hard-disks" class="hard-disks">
1.47 <h2>Hard Disks</h2>
1.48
1.49 - <div template:id="hard-disks-node" id="{template:this-position()}">
1.50 + <div template:id="hard-disks-node" id="{template:this-element()}">
1.51 <p template:element="hard-disk">Hard disk drive
1.52 - <select name="{template:multi-field-name('value')}">
1.53 + <select name="{template:list-attribute('value')}">
1.54 <option template:element="hard-disk-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.55 value="{@value}"></option>
1.56 </select>
1.57
1.58 <input type="submit" value="Remove"
1.59 - name="remove-hard-disk={template:this-position()}" /></p>
1.60 + name="remove-hard-disk={template:this-element()}" /></p>
1.61
1.62 <p>
1.63 <input type="submit" value="Add hard disk"
1.64 - name="add-hard-disk={template:this-position()}" /></p>
1.65 + name="add-hard-disk={template:this-element()}" /></p>
1.66 </div>
1.67 </div>
1.68
1.69 @@ -79,17 +79,17 @@
1.70 <h2>Additional Storage</h2>
1.71
1.72 <p template:element="storage-unit">Storage unit
1.73 - <select name="{template:multi-field-name('value')}">
1.74 + <select name="{template:list-attribute('value')}">
1.75 <option template:element="storage-unit-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.76 value="{@value}"></option>
1.77 </select>
1.78
1.79 <input type="submit" value="Remove"
1.80 - name="remove-storage-unit={template:this-position()}" /></p>
1.81 + name="remove-storage-unit={template:this-element()}" /></p>
1.82
1.83 <p>
1.84 <input type="submit" value="Add storage"
1.85 - name="add-storage-unit={template:this-position()}" /></p>
1.86 + name="add-storage-unit={template:this-element()}" /></p>
1.87 </div>
1.88 </div>
1.89 <div id="bottom">
1.90 @@ -97,14 +97,14 @@
1.91 <h2>Input Devices</h2>
1.92
1.93 <p template:element="keyboard">Keyboard
1.94 - <select name="{template:multi-field-name('value')}">
1.95 + <select name="{template:list-attribute('value')}">
1.96 <option template:element="keyboard-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.97 value="{@value}"></option>
1.98 </select>
1.99 </p>
1.100
1.101 <p template:element="mouse">Mouse
1.102 - <select name="{template:multi-field-name('value')}">
1.103 + <select name="{template:list-attribute('value')}">
1.104 <option template:element="mouse-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.105 value="{@value}"></option>
1.106 </select>
1.107 @@ -113,7 +113,7 @@
1.108 <h2>Display</h2>
1.109
1.110 <p template:element="screen">Screen
1.111 - <select name="{template:multi-field-name('value')}">
1.112 + <select name="{template:list-attribute('value')}">
1.113 <option template:element="screen-enum" template:expr="@value-is-set" template:expr-attr="selected" template:value="@value"
1.114 value="{@value}"></option>
1.115 </select>